mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-08-02 04:04:39 +02:00
Update from review
This commit is contained in:
@@ -9367,7 +9367,7 @@ static int DoVerifyCallback(WOLFSSL* ssl, int ret, ProcPeerCertArgs* args)
|
|||||||
/* perform IP address check on the peer certificate */
|
/* perform IP address check on the peer certificate */
|
||||||
if ((args->dCertInit != 0) && (args->dCert != NULL) &&
|
if ((args->dCertInit != 0) && (args->dCert != NULL) &&
|
||||||
(ssl->param != NULL) && (XSTRLEN(ssl->param->ipasc) > 0)) {
|
(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;
|
return VERIFY_CERT_ERROR;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user