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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user