libmicrohttpd

HTTP/1.x server C library (MHD 1.x, stable)
Log | Files | Refs | Submodules | README | LICENSE

commit 67061d5ce2e8433dc97c75bca2711134b66fdc69
parent a80d80604a85b0a3b85e8147c4844c4aeb925a9b
Author: Evgeny Grin (Karlson2k) <k2k@narod.ru>
Date:   Mon, 19 Jun 2023 13:05:28 +0300

process new connection: fixed missing mutex unlock in error handling path

Diffstat:
Msrc/microhttpd/daemon.c | 1+
1 file changed, 1 insertion(+), 0 deletions(-)

diff --git a/src/microhttpd/daemon.c b/src/microhttpd/daemon.c @@ -2778,6 +2778,7 @@ new_connection_process_ (struct MHD_Daemon *daemon, /* Firm check under lock. */ if (daemon->connections >= daemon->connection_limit) { /* Connections limit */ + MHD_mutex_unlock_chk_ (&daemon->cleanup_connection_mutex); #ifdef HAVE_MESSAGES MHD_DLOG (daemon, _ ("Server reached connection limit. "