Skip to content

Commit 2a5256b

Browse files
authored
Merge pull request #9654 from embhorn/zd21038
Fix DecodeAuthKeyInternal not clearing cert->extAuthKeyIdSet
2 parents 35f6910 + 4e41993 commit 2a5256b

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

wolfcrypt/src/asn.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21414,6 +21414,9 @@ static int DecodeAuthKeyIdInternal(const byte* input, word32 sz,
2141421414
ret = GetHashId(extAuthKeyId, (int)extAuthKeyIdSz, cert->extAuthKeyId,
2141521415
HashIdAlg(cert->signatureOID));
2141621416
}
21417+
else {
21418+
cert->extAuthKeyIdSet = 0;
21419+
}
2141721420

2141821421
#ifdef WOLFSSL_AKID_NAME
2141921422
if (ret == 0 && extAuthKeyIdIssuerSz > 0) {

0 commit comments

Comments
 (0)