projects
/
suckless
/
slstatus.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d19d4aa
)
Fixes issue #15. Forgot to close() a socket in wifi_essid()...
author
Aaron Marcher
<info@nulltime.net>
Tue, 13 Sep 2016 16:54:15 +0000
(18:54 +0200)
committer
Aaron Marcher (drkhsh)
<info@nulltime.net>
Tue, 13 Sep 2016 16:54:15 +0000
(18:54 +0200)
slstatus.c
patch
|
blob
|
history
diff --git
a/slstatus.c
b/slstatus.c
index e38b96327d0fa45266d3332811091f686c764ccb..841fb47c59ff96fa5416d73d31851854e2995cce 100644
(file)
--- 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