summaryrefslogtreecommitdiff
path: root/src/daemon/daemon.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/daemon/daemon.c')
-rw-r--r--src/daemon/daemon.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/daemon/daemon.c b/src/daemon/daemon.c
index 346abedf..02cdfe21 100644
--- a/src/daemon/daemon.c
+++ b/src/daemon/daemon.c
@@ -139,13 +139,12 @@ MHD_get_fdset (struct MHD_Daemon *daemon,
struct MHD_Connection *pos;
int fd;
- fd = daemon->socket_fd;
if ((daemon == NULL) ||
(read_fd_set == NULL) ||
(write_fd_set == NULL) ||
(except_fd_set == NULL) ||
(max_fd == NULL) ||
- (fd == -1) ||
+ (-1 == (fd = daemon->socket_fd)) ||
(daemon->shutdown == MHD_YES) ||
((daemon->options & MHD_USE_THREAD_PER_CONNECTION) != 0))
return MHD_NO;