summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEvgeny Grin (Karlson2k) <k2k@narod.ru>2016-04-08 16:31:10 +0000
committerEvgeny Grin (Karlson2k) <k2k@narod.ru>2016-04-08 16:31:10 +0000
commit1057677e86cd776489c9417f2d7f3a8018932891 (patch)
treecc32ee9df2966be27ed245d7f92ea5cef550a57b
parent1476b01284de49b49e2fd78dd32278f4601795e7 (diff)
connection.c: remove unneeded check in try_ready_normal_body()
-rw-r--r--src/microhttpd/connection.c6
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)
{
/* either error or http 1.0 transfer, close socket! */
response->total_size = connection->response_write_position;
- if (NULL != response->crc)
- (void) MHD_mutex_unlock_ (&response->mutex);
+ (void) MHD_mutex_unlock_ (&response->mutex);
if ( ((ssize_t)MHD_CONTENT_READER_END_OF_STREAM) == ret)
MHD_connection_close_ (connection,
MHD_REQUEST_TERMINATED_COMPLETED_OK);
@@ -588,8 +587,7 @@ try_ready_normal_body (struct MHD_Connection *connection)
if (0 == ret)
{
connection->state = MHD_CONNECTION_NORMAL_BODY_UNREADY;
- if (NULL != response->crc)
- (void) MHD_mutex_unlock_ (&response->mutex);
+ (void) MHD_mutex_unlock_ (&response->mutex);
return MHD_NO;
}
return MHD_YES;