aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2016-08-27 17:02:00 +0000
committerChristian Grothoff <christian@grothoff.org>2016-08-27 17:02:00 +0000
commit8c7769fc5365ec762491dc93286773a9e36c32bc (patch)
tree86f79f7eb28264b6baa73dcb36fd8d48b4439512
parent81e43f93f585f08111980e794485243731fe23c2 (diff)
downloadlibmicrohttpd-8c7769fc5365ec762491dc93286773a9e36c32bc.tar.gz
libmicrohttpd-8c7769fc5365ec762491dc93286773a9e36c32bc.zip
-add missing unlock
-rw-r--r--src/microhttpd/connection.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/microhttpd/connection.c b/src/microhttpd/connection.c
index cccfa774..ff7f663f 100644
--- a/src/microhttpd/connection.c
+++ b/src/microhttpd/connection.c
@@ -2320,7 +2320,11 @@ MHD_connection_handle_write (struct MHD_Connection *connection)
2320 if (NULL != response->crc) 2320 if (NULL != response->crc)
2321 (void) MHD_mutex_lock_ (&response->mutex); 2321 (void) MHD_mutex_lock_ (&response->mutex);
2322 if (MHD_YES != try_ready_normal_body (connection)) 2322 if (MHD_YES != try_ready_normal_body (connection))
2323 {
2324 if (NULL != response->crc)
2325 (void) MHD_mutex_unlock_ (&response->mutex);
2323 break; 2326 break;
2327 }
2324 data_write_offset = connection->response_write_position 2328 data_write_offset = connection->response_write_position
2325 - response->data_start; 2329 - response->data_start;
2326 if (data_write_offset > (uint64_t)SIZE_MAX) 2330 if (data_write_offset > (uint64_t)SIZE_MAX)