gnunet-svn
[Top][All Lists]
Advanced

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

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


From: gnunet
Subject: [GNUnet-SVN] r34726 - libmicrohttpd/src/microhttpd
Date: Sat, 20 Dec 2014 02:01:14 +0100

Author: grothoff
Date: 2014-12-20 02:01:14 +0100 (Sat, 20 Dec 2014)
New Revision: 34726

Modified:
   libmicrohttpd/src/microhttpd/connection.c
Log:
-avoid cmp with uninitialized pointer, even if harmless

Modified: libmicrohttpd/src/microhttpd/connection.c
===================================================================
--- libmicrohttpd/src/microhttpd/connection.c   2014-12-20 00:55:21 UTC (rev 
34725)
+++ libmicrohttpd/src/microhttpd/connection.c   2014-12-20 01:01:14 UTC (rev 
34726)
@@ -834,8 +834,8 @@
 
   for (pos = connection->response->first_header; NULL != pos; pos = pos->next)
     if ( (pos->kind == kind) &&
-         (! ( (pos->value == response_has_keepalive) &&
-              (MHD_YES == must_add_close) &&
+         (! ( (MHD_YES == must_add_close) &&
+              (pos->value == response_has_keepalive) &&
               (0 == strcasecmp (pos->header,
                                 MHD_HTTP_HEADER_CONNECTION) ) ) ) )
       size += strlen (pos->header) + strlen (pos->value) + 4; /* colon, space, 
linefeeds */




reply via email to

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