mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-07-29 18:27:29 +02:00
Merge pull request #6699 from JacobBarthelmeh/PKCS7
init mp_int before use
This commit is contained in:
@ -9308,7 +9308,9 @@ static int wc_PKCS7_KariGetIssuerAndSerialNumber(WC_PKCS7_KARI* kari,
|
||||
return ASN_PARSE_E;
|
||||
}
|
||||
|
||||
ret = mp_read_unsigned_bin(recipSerial, kari->decoded->serial,
|
||||
ret = mp_init(recipSerial);
|
||||
if (ret == MP_OKAY)
|
||||
ret = mp_read_unsigned_bin(recipSerial, kari->decoded->serial,
|
||||
kari->decoded->serialSz);
|
||||
if (ret != MP_OKAY) {
|
||||
mp_clear(serial);
|
||||
|
Reference in New Issue
Block a user