mirror of
https://github.com/pikami/slstatus.git
synced 2026-10-21 02:34:25 +01:00
Fixes issue #15. Forgot to close() a socket in wifi_essid()...
This commit is contained in:
1 parent
d19d4aa2e8
commit
75b1853313
1 file changed
+2
@@ -568,6 +568,8 @@ wifi_essid(const char *wificard)
|
||||
return smprintf(UNKNOWN_STR);
|
||||
}
|
||||
|
||||
close(sockfd);
|
||||
|
||||
if (strcmp((char *)wreq.u.essid.pointer, "") == 0)
|
||||
return smprintf(UNKNOWN_STR);
|
||||
else
|
||||
|
||||
Reference in new issue
Block a user