mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2026-07-07 04:10:49 +02:00
zero RSA DER key buffer before free
This commit is contained in:
@@ -69,7 +69,10 @@ static int KcapiRsa_SetPrivKey(RsaKey* key)
|
||||
}
|
||||
}
|
||||
|
||||
XFREE(priv, key->heap, DYNAMIC_TYPE_TMP_BUFFER);
|
||||
if (priv != NULL) {
|
||||
ForceZero(priv, len);
|
||||
XFREE(priv, key->heap, DYNAMIC_TYPE_TMP_BUFFER);
|
||||
}
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user