mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2024-11-28 21:19:24 +01:00
netconfig: Set more correct buffer length
Use INET_ADDRSTRLEN as the IPv4 address buffer size to avoid confusion.
This commit is contained in:
parent
54e3bb385a
commit
5c95c5cc16
@ -608,7 +608,7 @@ static bool netconfig_ipv4_routes_install(struct netconfig *netconfig)
|
|||||||
L_AUTO_FREE_VAR(char *, gateway) = NULL;
|
L_AUTO_FREE_VAR(char *, gateway) = NULL;
|
||||||
struct in_addr in_addr;
|
struct in_addr in_addr;
|
||||||
char *network;
|
char *network;
|
||||||
char ip[INET6_ADDRSTRLEN];
|
char ip[INET_ADDRSTRLEN];
|
||||||
unsigned int prefix_len =
|
unsigned int prefix_len =
|
||||||
l_rtnl_address_get_prefix_length(netconfig->v4_address);
|
l_rtnl_address_get_prefix_length(netconfig->v4_address);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user