diff --git a/wolfcrypt/src/ecc.c b/wolfcrypt/src/ecc.c index 8d861fa6c..06b91d04a 100644 --- a/wolfcrypt/src/ecc.c +++ b/wolfcrypt/src/ecc.c @@ -4899,6 +4899,7 @@ static int wc_ecc_import_raw_private(ecc_key* key, const char* qx, return BAD_FUNC_ARG; } + XMEMSET(key, 0, sizeof(ecc_key)); /* set curve type and index */ err = wc_ecc_set_curve(key, 0, curve_id); if (err != 0) {