From de21642db113c2067cc4f88b4951cb73e05656a5 Mon Sep 17 00:00:00 2001 From: kaleb-himes Date: Mon, 11 Mar 2019 11:19:51 -0600 Subject: [PATCH] Update sanity check for set --- wolfcrypt/src/asn.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wolfcrypt/src/asn.c b/wolfcrypt/src/asn.c index 28c0533fe..20338339d 100644 --- a/wolfcrypt/src/asn.c +++ b/wolfcrypt/src/asn.c @@ -8079,7 +8079,7 @@ int ParseCertRelative(DecodedCert* cert, int type, int verify, void* cm) #ifndef NO_SKID if (cert->extAuthKeyIdSet) cert->ca = GetCA(cm, cert->extAuthKeyId); - if (cert->ca == NULL) + if (cert->ca == NULL && cert->extSubjKeyIdSet) cert->ca = GetCA(cm, cert->extSubjKeyId); if (cert->ca == NULL) cert->ca = GetCAByName(cm, cert->issuerHash);