3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-11-22 06:29:23 +01:00

ip-pool: Do not use inet_aton

This commit is contained in:
Denis Kenzior 2021-06-04 12:31:53 -05:00
parent 75a9199bc4
commit 772aa687d7

View File

@ -152,7 +152,7 @@ int ip_pool_select_addr4(const char **addr_str_list, uint8_t subnet_prefix_len,
(32 - l_rtnl_address_get_prefix_length(rec->addr));
if (!l_rtnl_address_get_address(rec->addr, addr_str) ||
inet_aton(addr_str, &ia) < 0)
inet_pton(AF_INET, addr_str, &ia) != 1)
continue;
range = l_new(struct ip_pool_addr4_range, 1);