libmicrohttpd

HTTP/1.x server C library (MHD 1.x, stable)
Log | Files | Refs | Submodules | README | LICENSE

commit 1057677e86cd776489c9417f2d7f3a8018932891
parent 1476b01284de49b49e2fd78dd32278f4601795e7
Author: Evgeny Grin (Karlson2k) <k2k@narod.ru>
Date:   Fri,  8 Apr 2016 16:31:10 +0000

connection.c: remove unneeded check in try_ready_normal_body()

Diffstat:
Msrc/microhttpd/connection.c | 6++----
1 file changed, 2 insertions(+), 4 deletions(-)

diff --git 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;