Update from review

This commit is contained in:
Eric Blankenhorn
2019-10-31 17:45:33 -05:00
parent 58d800fbb7
commit 6839110507

View File

@@ -9367,7 +9367,7 @@ static int DoVerifyCallback(WOLFSSL* ssl, int ret, ProcPeerCertArgs* args)
/* perform IP address check on the peer certificate */
if ((args->dCertInit != 0) && (args->dCert != NULL) &&
(ssl->param != NULL) && (XSTRLEN(ssl->param->ipasc) > 0)) {
if (CheckIPAddr(args->dCert, ssl->param->ipasc) == 0) {
if (CheckIPAddr(args->dCert, ssl->param->ipasc) != 0) {
return VERIFY_CERT_ERROR;
}
}