diff options
author | Felix Fietkau <nbd@openwrt.org> | 2012-12-30 20:01:50 +0100 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2012-12-30 20:01:50 +0100 |
commit | 54443d7f29f03987879b8f374a88cc7ea7599609 (patch) | |
tree | a1ca56d6547a32b66e67d59c1d19676ac22d92f4 /listen.c | |
parent | d364884471614988e500e2d5412f7aeac00eb9d2 (diff) |
fix socket value detection
Diffstat (limited to 'listen.c')
-rw-r--r-- | listen.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); } |