forked from wolfSSL/wolfssl
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 */
|
||||
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);
|
||||
buf = NULL;
|
||||
break;
|
||||
@@ -25297,7 +25297,7 @@ int wolfSSL_X509_VERIFY_PARAM_set1_ip(WOLFSSL_X509_VERIFY_PARAM* param,
|
||||
}
|
||||
}
|
||||
else {
|
||||
WOLFSSL_MSG("iplen is zero, do nothig");
|
||||
WOLFSSL_MSG("iplen is zero, do nothing");
|
||||
return WOLFSSL_SUCCESS;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user