Fix a bug in wifi_essid(). When an invalid interface name is passed to wifi_essid() it does not close opened sockets.
Aaron Marcher me@drkhsh.at
Sat, 06 Jan 2018 23:37:09 +0100
1 files changed,
1 insertions(+),
0 deletions(-)
jump to
M
components/wifi.c
→
components/wifi.c
@@ -77,6 +77,7 @@ }
wreq.u.essid.pointer = id; if (ioctl(sockfd,SIOCGIWESSID, &wreq) == -1) { warn("Failed to get ESSID for interface %s", iface); + close(sockfd); return NULL; }