From cfd8cfeefaf5b60fc383dd376263f86305f6c4ee Mon Sep 17 00:00:00 2001 From: "Evgeny Grin (Karlson2k)" Date: Fri, 28 Oct 2016 22:22:46 +0300 Subject: [PATCH] Fixed regression introduced by dd327c1d13252373cd1730e445d19930417571bf --- src/microhttpd/daemon.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/microhttpd/daemon.c b/src/microhttpd/daemon.c index fcbfe105..7e4efe7e 100644 --- a/src/microhttpd/daemon.c +++ b/src/microhttpd/daemon.c @@ -2478,6 +2478,7 @@ resume_suspended_connections (struct MHD_Daemon *daemon) if (0 != (daemon->options & MHD_USE_THREAD_PER_CONNECTION)) MHD_mutex_lock_chk_ (&daemon->cleanup_connection_mutex); + next = daemon->suspended_connections_head; /* Clear the flag *only* if connections will be resumed otherwise it may accidentally clear flag that was set at the same time in other thread (just after 'if (MHD_NO != daemon->resuming)' in