mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-07-30 10:47:28 +02:00
Fix for CID 330399 memory leak on error case
This commit is contained in:
@ -33607,6 +33607,9 @@ int DecodeAsymKey(const byte* input, word32* inOutIdx, word32 inSz,
|
|||||||
|
|
||||||
if (input == NULL || inOutIdx == NULL || inSz == 0 ||
|
if (input == NULL || inOutIdx == NULL || inSz == 0 ||
|
||||||
privKey == NULL || privKeyLen == NULL) {
|
privKey == NULL || privKeyLen == NULL) {
|
||||||
|
#ifdef WOLFSSL_ASN_TEMPLATE
|
||||||
|
FREE_ASNGETDATA(dataASN, NULL);
|
||||||
|
#endif
|
||||||
return BAD_FUNC_ARG;
|
return BAD_FUNC_ARG;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user