all repos — slstatus @ fa62e8199e32497d48b2f6ef9ecaa798bd53466a

my build of slstatus (tools.suckless.org/slstatus/)

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
commit

fa62e8199e32497d48b2f6ef9ecaa798bd53466a

parent

47d0073bfd9edfe479700281232db925a5323857

1 files changed, 1 insertions(+), 0 deletions(-)

jump to
M components/wifi.ccomponents/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; }