From f55fe7fccd469cb9c7cafea8231899a26b9e7c0b Mon Sep 17 00:00:00 2001 From: Eric Blankenhorn Date: Mon, 18 Jul 2022 09:13:07 -0500 Subject: [PATCH] Fix var init in wc_ecc_shared_secret --- wolfcrypt/src/ecc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wolfcrypt/src/ecc.c b/wolfcrypt/src/ecc.c index 3112152b3..6f0278284 100644 --- a/wolfcrypt/src/ecc.c +++ b/wolfcrypt/src/ecc.c @@ -4222,7 +4222,7 @@ static void wc_ecc_free_async(ecc_key* key) int wc_ecc_shared_secret(ecc_key* private_key, ecc_key* public_key, byte* out, word32* outlen) { - int err; + int err = 0; #if defined(WOLFSSL_CRYPTOCELL) && !defined(WOLFSSL_ATECC508A) && \ !defined(WOLFSSL_ATECC608A)