From 4d5e1d0dfee1a4051ddebab39428d491db6f3f97 Mon Sep 17 00:00:00 2001 From: Ruby Martin Date: Tue, 2 Sep 2025 10:09:11 -0600 Subject: [PATCH] move pathLegthSet assignment --- 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 a237a1716..baa0d9986 100644 --- a/wolfcrypt/src/asn.c +++ b/wolfcrypt/src/asn.c @@ -20844,9 +20844,9 @@ static int DecodeBasicCaConstraintInternal(const byte* input, int sz, return ret; cert->isCA = isCa ? 1 : 0; + cert->pathLengthSet = pathLengthSet ? 1 : 0; if (pathLengthSet) { cert->pathLength = pathLength; - cert->pathLengthSet = pathLengthSet ? 1 : 0; } return 0;