diff options
author | Evgeny Grin (Karlson2k) <k2k@narod.ru> | 2023-06-19 13:05:28 +0300 |
---|---|---|
committer | Evgeny Grin (Karlson2k) <k2k@narod.ru> | 2023-06-20 23:22:57 +0300 |
commit | 67061d5ce2e8433dc97c75bca2711134b66fdc69 (patch) | |
tree | 9e64269c02abeaf5e4bdebf0edce8df4fba08593 | |
parent | a80d80604a85b0a3b85e8147c4844c4aeb925a9b (diff) | |
download | libmicrohttpd-67061d5ce2e8433dc97c75bca2711134b66fdc69.tar.gz libmicrohttpd-67061d5ce2e8433dc97c75bca2711134b66fdc69.zip |
process new connection: fixed missing mutex unlock in error handling path
-rw-r--r-- | src/microhttpd/daemon.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/microhttpd/daemon.c b/src/microhttpd/daemon.c index c403d02b..a09df69f 100644 --- a/src/microhttpd/daemon.c +++ b/src/microhttpd/daemon.c | |||
@@ -2778,6 +2778,7 @@ new_connection_process_ (struct MHD_Daemon *daemon, | |||
2778 | /* Firm check under lock. */ | 2778 | /* Firm check under lock. */ |
2779 | if (daemon->connections >= daemon->connection_limit) | 2779 | if (daemon->connections >= daemon->connection_limit) |
2780 | { /* Connections limit */ | 2780 | { /* Connections limit */ |
2781 | MHD_mutex_unlock_chk_ (&daemon->cleanup_connection_mutex); | ||
2781 | #ifdef HAVE_MESSAGES | 2782 | #ifdef HAVE_MESSAGES |
2782 | MHD_DLOG (daemon, | 2783 | MHD_DLOG (daemon, |
2783 | _ ("Server reached connection limit. " | 2784 | _ ("Server reached connection limit. " |