Merge pull request #9157 from rlm2002/coverity

move pathLengthSet assignment
This commit is contained in:
Sean Parkinson
2025-09-04 08:35:16 +10:00
committed by GitHub

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;