Merge pull request #5369 from embhorn/zd14522

Fix var init in wc_ecc_shared_secret
This commit is contained in:
David Garske
2022-07-18 14:17:53 -07:00
committed by GitHub

View File

@ -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)