Skip to content

Commit 4e41993

Browse files
committed
Fix DecodeAuthKeyInternal not clearing cert->extAuthKeyIdSet
1 parent caa6429 commit 4e41993

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)