Skip to content

Commit e35e713

Browse files
committed
wolfcrypt/src/asn.c: fix for copy-paste error in FillSigner() WOLFSSL_DUAL_ALG_CERTS path.
1 parent 780fd98 commit e35e713

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

wolfcrypt/src/asn.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24067,7 +24067,7 @@ int FillSigner(Signer* signer, DecodedCert* cert, int type, DerBuffer *der)
2406724067
if (ret == 0 && signer != NULL) {
2406824068
if (cert->extSapkiSet && cert->sapkiLen > 0) {
2406924069
/* Allocated space for alternative public key. */
24070-
signer->sapkiDer = (byte*)XMALLOC(cert->sapkiLen, cm->heap,
24070+
signer->sapkiDer = (byte*)XMALLOC(cert->sapkiLen, cert->heap,
2407124071
DYNAMIC_TYPE_PUBLIC_KEY);
2407224072
if (signer->sapkiDer == NULL) {
2407324073
ret = MEMORY_E;
@@ -24083,7 +24083,8 @@ int FillSigner(Signer* signer, DecodedCert* cert, int type, DerBuffer *der)
2408324083

2408424084
#if defined(WOLFSSL_AKID_NAME) || defined(HAVE_CRL)
2408524085
if (ret == 0 && signer != NULL)
24086-
ret = CalcHashId(cert->serial, (word32)cert->serialSz, signer->serialHash);
24086+
ret = CalcHashId(cert->serial, (word32)cert->serialSz,
24087+
signer->serialHash);
2408724088
#endif
2408824089
if (ret == 0 && signer != NULL) {
2408924090
#ifdef WOLFSSL_SIGNER_DER_CERT

0 commit comments

Comments
 (0)