Skip to content

Commit 975047b

Browse files
authored
Merge pull request #6710 from JacobBarthelmeh/PKCS7
initialize kari decoded cert
2 parents b156e83 + d7b2626 commit 975047b

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

wolfcrypt/src/pkcs7.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5668,6 +5668,7 @@ static WC_PKCS7_KARI* wc_PKCS7_KariNew(PKCS7* pkcs7, byte direction)
56685668
XFREE(kari, pkcs7->heap, DYNAMIC_TYPE_PKCS7);
56695669
return NULL;
56705670
}
5671+
XMEMSET(kari->decoded, 0, sizeof(DecodedCert));
56715672

56725673
kari->recipKey = (ecc_key*)XMALLOC(sizeof(ecc_key), pkcs7->heap,
56735674
DYNAMIC_TYPE_PKCS7);

0 commit comments

Comments
 (0)