commit 8c7769fc5365ec762491dc93286773a9e36c32bc
parent 81e43f93f585f08111980e794485243731fe23c2
Author: Christian Grothoff <christian@grothoff.org>
Date: Sat, 27 Aug 2016 17:02:00 +0000
-add missing unlock
Diffstat:
1 file changed, 4 insertions(+), 0 deletions(-)
diff --git a/src/microhttpd/connection.c b/src/microhttpd/connection.c
@@ -2320,7 +2320,11 @@ MHD_connection_handle_write (struct MHD_Connection *connection)
if (NULL != response->crc)
(void) MHD_mutex_lock_ (&response->mutex);
if (MHD_YES != try_ready_normal_body (connection))
+ {
+ if (NULL != response->crc)
+ (void) MHD_mutex_unlock_ (&response->mutex);
break;
+ }
data_write_offset = connection->response_write_position
- response->data_start;
if (data_write_offset > (uint64_t)SIZE_MAX)