mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-08-02 04:04:39 +02:00
addressed review comments
This commit is contained in:
@@ -25274,7 +25274,7 @@ int wolfSSL_X509_VERIFY_PARAM_set1_ip(WOLFSSL_X509_VERIFY_PARAM* param,
|
|||||||
}
|
}
|
||||||
/* sanity check */
|
/* sanity check */
|
||||||
if (XSTRLEN(buf) > max_ipv6_len) {
|
if (XSTRLEN(buf) > max_ipv6_len) {
|
||||||
printf("The target ip adress exceeds buffer length(40)\n");
|
WOLFSSL_MSG("The target ip adress exceeds buffer length(40)\n");
|
||||||
XFREE(buf, NULL, DYNAMIC_TYPE_TMP_BUFFER);
|
XFREE(buf, NULL, DYNAMIC_TYPE_TMP_BUFFER);
|
||||||
buf = NULL;
|
buf = NULL;
|
||||||
break;
|
break;
|
||||||
@@ -25297,7 +25297,7 @@ int wolfSSL_X509_VERIFY_PARAM_set1_ip(WOLFSSL_X509_VERIFY_PARAM* param,
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
WOLFSSL_MSG("iplen is zero, do nothig");
|
WOLFSSL_MSG("iplen is zero, do nothing");
|
||||||
return WOLFSSL_SUCCESS;
|
return WOLFSSL_SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user