mirror of
https://github.com/warmcat/libwebsockets.git
synced 2025-03-09 00:00:04 +01:00
getifaddrs: fix second lws_malloc
This commit is contained in:
parent
001b3010a6
commit
8528de580a
1 changed files with 1 additions and 1 deletions
|
@ -141,7 +141,7 @@ getifaddrs2(struct ifaddrs **ifap, int af, int siocgifconf, int siocgifflags,
|
|||
(*end)->ifa_next = NULL;
|
||||
(*end)->ifa_name = strdup(ifr->ifr_name);
|
||||
(*end)->ifa_flags = ifreq.ifr_flags;
|
||||
(*end)->ifa_addr = lws_malloc(salen);
|
||||
(*end)->ifa_addr = lws_malloc(salen, "getifaddrs");
|
||||
memcpy((*end)->ifa_addr, sa, salen);
|
||||
(*end)->ifa_netmask = NULL;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue