mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2024-11-26 18:59:22 +01:00
ip-pool: Do not use inet_aton
This commit is contained in:
parent
75a9199bc4
commit
772aa687d7
@ -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));
|
(32 - l_rtnl_address_get_prefix_length(rec->addr));
|
||||||
|
|
||||||
if (!l_rtnl_address_get_address(rec->addr, addr_str) ||
|
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;
|
continue;
|
||||||
|
|
||||||
range = l_new(struct ip_pool_addr4_range, 1);
|
range = l_new(struct ip_pool_addr4_range, 1);
|
||||||
|
Loading…
Reference in New Issue
Block a user