forked from wolfSSL/wolfssl
Merge branch 'master' into ti
This commit is contained in:
@ -5742,6 +5742,8 @@ static int SetDatesFromCert(Cert* cert, const byte* der, int derSz)
|
|||||||
cert->beforeDateSz = decoded.beforeDateLen;
|
cert->beforeDateSz = decoded.beforeDateLen;
|
||||||
cert->afterDateSz = decoded.afterDateLen;
|
cert->afterDateSz = decoded.afterDateLen;
|
||||||
|
|
||||||
|
FreeDecodedCert(&decoded);
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1075,6 +1075,7 @@ CYASSL_LOCAL int CreateRecipientInfo(const byte* cert, word32 certSz,
|
|||||||
if (RsaPublicKeyDecode(decoded->publicKey, &idx, pubKey,
|
if (RsaPublicKeyDecode(decoded->publicKey, &idx, pubKey,
|
||||||
decoded->pubKeySize) < 0) {
|
decoded->pubKeySize) < 0) {
|
||||||
CYASSL_MSG("ASN RSA key decode error");
|
CYASSL_MSG("ASN RSA key decode error");
|
||||||
|
FreeRsaKey(pubKey);
|
||||||
FreeDecodedCert(decoded);
|
FreeDecodedCert(decoded);
|
||||||
#ifdef CYASSL_SMALL_STACK
|
#ifdef CYASSL_SMALL_STACK
|
||||||
XFREE(pubKey, NULL, DYNAMIC_TYPE_TMP_BUFFER);
|
XFREE(pubKey, NULL, DYNAMIC_TYPE_TMP_BUFFER);
|
||||||
|
Reference in New Issue
Block a user