From b608946549f9b2b6c7663213f425224f8db08ef4 Mon Sep 17 00:00:00 2001 From: Anthony Hu Date: Mon, 10 Mar 2025 17:32:58 -0400 Subject: [PATCH] Guard fix. --- src/internal.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/internal.c b/src/internal.c index dc80d01d7..ca1845d88 100644 --- a/src/internal.c +++ b/src/internal.c @@ -13476,8 +13476,8 @@ int CopyDecodedToX509(WOLFSSL_X509* x509, DecodedCert* dCert) x509->altNamesNext = x509->altNames; /* index hint */ x509->isCa = dCert->isCA; - x509->basicConstCrit = dCert->extBasicConstCrit; #if defined(OPENSSL_EXTRA) || defined(OPENSSL_EXTRA_X509_SMALL) + x509->basicConstCrit = dCert->extBasicConstCrit; x509->pathLength = dCert->pathLength; x509->pathLengthSet = dCert->pathLengthSet; x509->keyUsage = dCert->extKeyUsage;