index
:
openwrt/uhttpd
bind-to-device
bind-to-device-21.02
bind-to-device-master
master
OpenWrt uhttpd
summary
refs
log
tree
commit
diff
log msg
author
committer
range
diff options
context:
1
2
3
4
5
6
7
8
9
10
15
20
25
30
35
40
space:
include
ignore
mode:
unified
ssdiff
stat only
Diffstat
-rw-r--r--
listen.c
2
1 files changed, 1 insertions, 1 deletions
diff --git a/listen.c b/listen.c
index b4d51e1..7e59d1d 100644
--- a/
listen.c
+++ b/
listen.c
@@ -167,7 +167,7 @@ int uh_socket_bind(const char *host, const char *port, bool tls)
continue;
error:
- if (sock > 0)
+ if (sock > -1)
close(sock);
}