projects
/
project
/
uhttpd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
d364884
)
fix socket value detection
author
Felix Fietkau
<nbd@openwrt.org>
Sun, 30 Dec 2012 19:01:50 +0000
(20:01 +0100)
committer
Felix Fietkau
<nbd@openwrt.org>
Sun, 30 Dec 2012 19:01:50 +0000
(20:01 +0100)
listen.c
patch
|
blob
|
history
diff --git
a/listen.c
b/listen.c
index b4d51e1708ec4c9158d41a6914d08159d0d7f5c6..7e59d1dc4673280391b0a6af1b31f192c8abe8cf 100644
(file)
--- 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);
}