commit 046ca777629087eb437934ea9bb330e6b0490b8e
parent 4deb335de8af6cc943ca7fc20a69167d8845cd9b
Author: Christian Grothoff <christian@grothoff.org>
Date: Fri, 10 Mar 2017 16:32:24 +0100
remove bogus check
Diffstat:
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/src/microhttpd/daemon.c b/src/microhttpd/daemon.c
@@ -2877,9 +2877,8 @@ MHD_accept_connection (struct MHD_Daemon *daemon)
const int err = MHD_socket_get_error_ ();
/* This could be a common occurance with multiple worker threads */
- if ( (MHD_SCKT_ERR_IS_ (err,
- MHD_SCKT_EINVAL_)) &&
- (MHD_INVALID_SOCKET == fd) )
+ if (MHD_SCKT_ERR_IS_ (err,
+ MHD_SCKT_EINVAL_))
return MHD_NO; /* can happen during shutdown */
if (MHD_SCKT_ERR_IS_DISCNN_BEFORE_ACCEPT_(err))
return MHD_NO; /* do not print error if client just disconnected early */