mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2026-01-26 22:02:22 +01:00
Merge pull request #9157 from rlm2002/coverity
move pathLengthSet assignment
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user