gnunet-svn
[Top][All Lists]
Advanced

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

[libmicrohttpd] 73/335: Fixed code logic for builds without messages


From: gnunet
Subject: [libmicrohttpd] 73/335: Fixed code logic for builds without messages
Date: Sat, 27 Jul 2024 21:59:29 +0200

This is an automated email from the git hooks/post-receive script.

grothoff pushed a commit to tag stf-m2
in repository libmicrohttpd.

commit 47fce1c2f2b82cd50165f939a6e64baca1582435
Author: Evgeny Grin (Karlson2k) <k2k@narod.ru>
AuthorDate: Mon Feb 19 21:30:17 2024 +0500

    Fixed code logic for builds without messages
---
 src/microhttpd/connection.c | 16 ++++++++++------
 1 file changed, 10 insertions(+), 6 deletions(-)

diff --git a/src/microhttpd/connection.c b/src/microhttpd/connection.c
index a63c5ebc..74e4bcd1 100644
--- a/src/microhttpd/connection.c
+++ b/src/microhttpd/connection.c
@@ -4189,24 +4189,28 @@ parse_cookie_header (struct MHD_Connection *connection)
 #endif /* HAVE_MESSAGES */
     break;
   case MHD_PARSE_COOKIE_MALFORMED:
-#ifdef HAVE_MESSAGES
     if (saved_tail != connection->rq.headers_received_tail)
     {
-      if (allow_partially_correct_cookie)
-        MHD_DLOG (connection->daemon,
-                  _ ("The Cookie header has been only partially parsed as it "
-                     "contains malformed data.\n"));
-      else
+      if (! allow_partially_correct_cookie)
       {
         /* Remove extracted values from partially broken cookie */
         /* Memory remains allocated until the end of the request processing */
         connection->rq.headers_received_tail = saved_tail;
         saved_tail->next = NULL;
+#ifdef HAVE_MESSAGES
         MHD_DLOG (connection->daemon,
                   _ ("The Cookie header has been ignored as it contains "
                      "malformed data.\n"));
+#endif /* HAVE_MESSAGES */
       }
+#ifdef HAVE_MESSAGES
+      else
+        MHD_DLOG (connection->daemon,
+                  _ ("The Cookie header has been only partially parsed as it "
+                     "contains malformed data.\n"));
+#endif /* HAVE_MESSAGES */
     }
+#ifdef HAVE_MESSAGES
     else
       MHD_DLOG (connection->daemon,
                 _ ("The Cookie header has malformed data.\n"));

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

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