From 54443d7f29f03987879b8f374a88cc7ea7599609 Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Sun, 30 Dec 2012 20:01:50 +0100 Subject: [PATCH] fix socket value detection --- listen.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } -- 2.11.0