summaryrefslogtreecommitdiff
path: root/slstatus.c
diff options
context:
space:
mode:
Diffstat (limited to 'slstatus.c')
-rw-r--r--slstatus.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/slstatus.c b/slstatus.c
index e38b963..841fb47 100644
--- a/slstatus.c
+++ b/slstatus.c
@@ -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