forked from wolfSSL/wolfssl
wc_ecc_mulmod_ex(): be more careful freeing temp key.
This commit is contained in:
@@ -3007,7 +3007,9 @@ exit:
|
||||
}
|
||||
#ifdef WOLFSSL_SMALL_STACK_CACHE
|
||||
if (key) {
|
||||
if (R)
|
||||
R->key = NULL;
|
||||
if (err == MP_OKAY)
|
||||
ecc_key_tmp_final(key, heap);
|
||||
XFREE(key, heap, DYNAMIC_TYPE_ECC);
|
||||
}
|
||||
|
Reference in New Issue
Block a user