diff options
author | Evgeny Grin (Karlson2k) <k2k@narod.ru> | 2023-03-02 21:16:02 +0300 |
---|---|---|
committer | Evgeny Grin (Karlson2k) <k2k@narod.ru> | 2023-03-02 21:16:02 +0300 |
commit | 2124a70e5431abf11b97ebb89d1f20f23f0845ea (patch) | |
tree | 2225606d7977e426caf8a643ebee5375142b7ffd | |
parent | 12f637aaf0a98bef3879d704cb492189aac83828 (diff) |
daemon.c: fixed heap manipulations with mutex held
-rw-r--r-- | src/microhttpd/daemon.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/microhttpd/daemon.c b/src/microhttpd/daemon.c index 97054e59..c9c0d51c 100644 --- a/src/microhttpd/daemon.c +++ b/src/microhttpd/daemon.c @@ -483,10 +483,11 @@ MHD_ip_limit_del (struct MHD_Daemon *daemon, tdelete (found_key, &daemon->per_ip_connection_count, &MHD_ip_addr_compare); + MHD_ip_count_unlock (daemon); free (found_key); } - - MHD_ip_count_unlock (daemon); + else + MHD_ip_count_unlock (daemon); } |