diff options
author | Evgeny Grin (Karlson2k) <k2k@narod.ru> | 2016-04-08 16:31:10 +0000 |
---|---|---|
committer | Evgeny Grin (Karlson2k) <k2k@narod.ru> | 2016-04-08 16:31:10 +0000 |
commit | 1057677e86cd776489c9417f2d7f3a8018932891 (patch) | |
tree | cc32ee9df2966be27ed245d7f92ea5cef550a57b | |
parent | 1476b01284de49b49e2fd78dd32278f4601795e7 (diff) | |
download | libmicrohttpd-1057677e86cd776489c9417f2d7f3a8018932891.tar.gz libmicrohttpd-1057677e86cd776489c9417f2d7f3a8018932891.zip |
connection.c: remove unneeded check in try_ready_normal_body()
-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; |