X-Git-Url: https://git.xinqibao.xyz/slstatus.git/blobdiff_plain/d2988c72e3e77e188fda0176ce4969322e69fae9..8bfe4b2e280e4d4b9762d3a93c4ec94c2fc9d754:/components/wifi.c diff --git a/components/wifi.c b/components/wifi.c index 9ecb8e1..3767b21 100644 --- a/components/wifi.c +++ b/components/wifi.c @@ -77,6 +77,7 @@ wifi_essid(const char *iface) wreq.u.essid.pointer = id; if (ioctl(sockfd,SIOCGIWESSID, &wreq) == -1) { warn("Failed to get ESSID for interface %s", iface); + close(sockfd); return NULL; }