Fix typo, verify leaf certificate attributes

The result of the verify leaf certificate attributes was ignored and always be OK. This fix will return corresponding error when verify leaf certificate attributes returns a not OK response code.
This commit is contained in:
Jesse Kerkhoven 2020-07-07 10:31:56 +02:00
parent b0222e41c0
commit 779a0b71b4
1 changed files with 1 additions and 2 deletions

View File

@ -434,8 +434,7 @@ public final class SecurityUtils {
responseCode = verifyLeafCertificateAttributes(leafCertificate, pki);
if (responseCode.equals(ResponseCodeType.OK))
return responseCode;
if (!responseCode.equals(ResponseCodeType.OK)) return responseCode;
return ResponseCodeType.OK;
}