move pathLegthSet assignment

This commit is contained in:
Ruby Martin
2025-09-02 10:09:11 -06:00
parent 7ef94284cc
commit 4d5e1d0dfe

View File

@@ -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;