Fix var init in wc_ecc_shared_secret

This commit is contained in:
Eric Blankenhorn
2022-07-18 09:13:07 -05:00
parent 218ab7e396
commit f55fe7fccd

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)