mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-07-31 19:24:42 +02:00
Fix mem leak in DSA
This commit is contained in:
@@ -4622,6 +4622,7 @@ int DsaPrivateKeyDecode(const byte* input, word32* inOutIdx, DsaKey* key,
|
||||
GetInt(&key->g, input, inOutIdx, inSz) < 0 ||
|
||||
GetOctetString(input, inOutIdx, &length, inSz) < 0 ||
|
||||
GetInt(&key->y, input, inOutIdx, inSz) < 0) {
|
||||
wc_FreeDsaKey(key);
|
||||
ret = ASN_PARSE_E;
|
||||
}
|
||||
if (ret == ASN_PARSE_E) {
|
||||
|
Reference in New Issue
Block a user