gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] r36991 - libmicrohttpd/src/microhttpd


From: gnunet
Subject: [GNUnet-SVN] r36991 - libmicrohttpd/src/microhttpd
Date: Fri, 8 Apr 2016 18:31:10 +0200

Author: Karlson2k
Date: 2016-04-08 18:31:10 +0200 (Fri, 08 Apr 2016)
New Revision: 36991

Modified:
   libmicrohttpd/src/microhttpd/connection.c
Log:
connection.c: remove unneeded check in try_ready_normal_body()

Modified: libmicrohttpd/src/microhttpd/connection.c
===================================================================
--- libmicrohttpd/src/microhttpd/connection.c   2016-04-08 16:31:08 UTC (rev 
36990)
+++ libmicrohttpd/src/microhttpd/connection.c   2016-04-08 16:31:10 UTC (rev 
36991)
@@ -573,8 +573,7 @@
     {
       /* 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 @@
   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;




reply via email to

[Prev in Thread] Current Thread [Next in Thread]