diff options
author | Aaron Marcher <info@nulltime.net> | 2016-09-13 18:54:15 +0200 |
---|---|---|
committer | Aaron Marcher (drkhsh) <info@nulltime.net> | 2016-09-13 18:54:15 +0200 |
commit | 75b18533135e3171157bedc731be5f0ee98937f3 (patch) | |
tree | 666f4ac1c4dcda9f9a1ce12b423d5329df6de974 /slstatus.c | |
parent | d19d4aa2e8be789c7d3c4849a7c5d9fcec18da5d (diff) |
Fixes issue #15. Forgot to close() a socket in wifi_essid()...
Diffstat (limited to 'slstatus.c')
-rw-r--r-- | slstatus.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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 |