initialize kari decoded cert

This commit is contained in:
JacobBarthelmeh
2023-08-16 13:20:29 -07:00
parent afd0d07d9a
commit d7b2626433

View File

@ -5668,6 +5668,7 @@ static WC_PKCS7_KARI* wc_PKCS7_KariNew(PKCS7* pkcs7, byte direction)
XFREE(kari, pkcs7->heap, DYNAMIC_TYPE_PKCS7);
return NULL;
}
XMEMSET(kari->decoded, 0, sizeof(DecodedCert));
kari->recipKey = (ecc_key*)XMALLOC(sizeof(ecc_key), pkcs7->heap,
DYNAMIC_TYPE_PKCS7);