addressed review comments

This commit is contained in:
Hideki Miyazaki
2021-08-12 07:41:24 +09:00
parent 5c55be72ec
commit 4fa69c0a3a

View File

@@ -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;
}