From ce31b156088647e2dd03c62ccc69306d949ddfe8 Mon Sep 17 00:00:00 2001 From: jordan Date: Wed, 23 Oct 2024 20:11:51 -0500 Subject: [PATCH] infer: fix uninit values in pkcs8_encode. --- src/pk.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pk.c b/src/pk.c index 42468bfed4..a78ec130c9 100644 --- a/src/pk.c +++ b/src/pk.c @@ -16478,9 +16478,9 @@ int pkcs8_encrypt(WOLFSSL_EVP_PKEY* pkey, int pkcs8_encode(WOLFSSL_EVP_PKEY* pkey, byte* key, word32* keySz) { int ret = 0; - int algId; + int algId = 0; const byte* curveOid; - word32 oidSz; + word32 oidSz = 0; /* Get the details of the private key. */ #ifdef HAVE_ECC