From 5b0735cdb4f81fc43a143d64d4e8d19596352ed8 Mon Sep 17 00:00:00 2001 From: David Garske Date: Mon, 28 Mar 2022 11:29:33 -0700 Subject: [PATCH] Fixes for async ECC broke in PR #4982. --- wolfcrypt/src/ecc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wolfcrypt/src/ecc.c b/wolfcrypt/src/ecc.c index b56de1392..897fff058 100644 --- a/wolfcrypt/src/ecc.c +++ b/wolfcrypt/src/ecc.c @@ -4429,7 +4429,7 @@ static int wc_ecc_shared_secret_gen_sync(ecc_key* private_key, ecc_point* point, static int wc_ecc_shared_secret_gen_async(ecc_key* private_key, ecc_point* point, byte* out, word32 *outlen) { - int err; + int err = 0; DECLARE_CURVE_SPECS(3); /* load curve info */ @@ -4503,7 +4503,7 @@ static int wc_ecc_shared_secret_gen_async(ecc_key* private_key, #endif /* use sync in other cases */ - err = wc_ecc_shared_secret_gen_sync(private_key, point, out, outlen, curve); + err = wc_ecc_shared_secret_gen_sync(private_key, point, out, outlen); wc_ecc_curve_free(curve); FREE_CURVE_SPECS();