mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2024-11-22 14:49:24 +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));
|
||||
|
||||
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);
|
||||
|
Loading…
Reference in New Issue
Block a user