Migrate is_valid_ipv4_addr() to a more generic function

It is now called is_valid_ip_addr() and expects an additional parameter
for the address family.
This commit is contained in:
2018-06-12 17:07:49 -04:00
parent a0dda67dfe
commit b3494dcfc1
6 changed files with 11 additions and 11 deletions

View File

@@ -64,7 +64,7 @@ have_allow_ip(const char *msg)
res = FKO_ERROR_INVALID_ALLOW_IP;
if(res == FKO_SUCCESS)
if (! is_valid_ipv4_addr(ip_str, strlen(ip_str)))
if (! is_valid_ip_addr(ip_str, strlen(ip_str), AF_INET))
res = FKO_ERROR_INVALID_ALLOW_IP;
return(res);