commit 5ac9c9835594471154e54252fbc364fd8f50e6a5
parent 9403196ad0b67b13d4fefdc4d3da6625d66be34e
Author: David Barksdale <amatus@amat.us>
Date: Tue, 8 Dec 2015 21:54:35 +0000
rev 36743 missed a spot
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/microhttpd/daemon.c b/src/microhttpd/daemon.c
@@ -2423,7 +2423,7 @@ MHD_select (struct MHD_Daemon *daemon,
timeout.tv_sec = (_MHD_TIMEVAL_TV_SEC_TYPE)(ltimeout / 1000);
tv = &timeout;
}
- num_ready = MHD_SYS_select_ (max + 1, &rs, &ws, &es, tv);
+ num_ready = MHD_SYS_select_ (maxsock + 1, &rs, &ws, &es, tv);
if (MHD_YES == daemon->shutdown)
return MHD_NO;
if (num_ready < 0)