diff options
Diffstat (limited to 'src/microhttpd/connection.c')
-rw-r--r-- | src/microhttpd/connection.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/microhttpd/connection.c b/src/microhttpd/connection.c index 3fc67319..279a335f 100644 --- a/src/microhttpd/connection.c +++ b/src/microhttpd/connection.c | |||
@@ -573,8 +573,7 @@ try_ready_normal_body (struct MHD_Connection *connection) | |||
573 | { | 573 | { |
574 | /* either error or http 1.0 transfer, close socket! */ | 574 | /* either error or http 1.0 transfer, close socket! */ |
575 | response->total_size = connection->response_write_position; | 575 | response->total_size = connection->response_write_position; |
576 | if (NULL != response->crc) | 576 | (void) MHD_mutex_unlock_ (&response->mutex); |
577 | (void) MHD_mutex_unlock_ (&response->mutex); | ||
578 | if ( ((ssize_t)MHD_CONTENT_READER_END_OF_STREAM) == ret) | 577 | if ( ((ssize_t)MHD_CONTENT_READER_END_OF_STREAM) == ret) |
579 | MHD_connection_close_ (connection, | 578 | MHD_connection_close_ (connection, |
580 | MHD_REQUEST_TERMINATED_COMPLETED_OK); | 579 | MHD_REQUEST_TERMINATED_COMPLETED_OK); |
@@ -588,8 +587,7 @@ try_ready_normal_body (struct MHD_Connection *connection) | |||
588 | if (0 == ret) | 587 | if (0 == ret) |
589 | { | 588 | { |
590 | connection->state = MHD_CONNECTION_NORMAL_BODY_UNREADY; | 589 | connection->state = MHD_CONNECTION_NORMAL_BODY_UNREADY; |
591 | if (NULL != response->crc) | 590 | (void) MHD_mutex_unlock_ (&response->mutex); |
592 | (void) MHD_mutex_unlock_ (&response->mutex); | ||
593 | return MHD_NO; | 591 | return MHD_NO; |
594 | } | 592 | } |
595 | return MHD_YES; | 593 | return MHD_YES; |