Skip to content

Commit 4d5e1d0

Browse files
committed
move pathLegthSet assignment
1 parent 7ef9428 commit 4d5e1d0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

wolfcrypt/src/asn.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20844,9 +20844,9 @@ static int DecodeBasicCaConstraintInternal(const byte* input, int sz,
2084420844
return ret;
2084520845

2084620846
cert->isCA = isCa ? 1 : 0;
20847+
cert->pathLengthSet = pathLengthSet ? 1 : 0;
2084720848
if (pathLengthSet) {
2084820849
cert->pathLength = pathLength;
20849-
cert->pathLengthSet = pathLengthSet ? 1 : 0;
2085020850
}
2085120851

2085220852
return 0;

0 commit comments

Comments
 (0)