summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--discover/discover-server.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/discover/discover-server.c b/discover/discover-server.c
index 138551a..2509457 100644
--- a/discover/discover-server.c
+++ b/discover/discover-server.c
@@ -208,7 +208,7 @@ static int discover_server_process_connection(void *arg)
/* accept the incoming connection */
fd = accept(server->socket, NULL, 0);
- if (!fd) {
+ if (fd < 0) {
pb_log("accept: %s\n", strerror(errno));
return 0;
}
OpenPOWER on IntegriCloud