[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.
- [libmicrohttpd] 76/335: tests: do not use test_auth_parse when messages are disabled, (continued)
- [libmicrohttpd] 76/335: tests: do not use test_auth_parse when messages are disabled, gnunet, 2024/07/27
- [libmicrohttpd] 75/335: configure: corrected help message, gnunet, 2024/07/27
- [libmicrohttpd] 64/335: microhttpd2.h edits, gnunet, 2024/07/27
- [libmicrohttpd] 65/335: microhttpd2.h edits, gnunet, 2024/07/27
- [libmicrohttpd] 66/335: microhttpd2.h edits, gnunet, 2024/07/27
- [libmicrohttpd] 83/335: Releasing GNU libmicrohttpd 1.0.1, gnunet, 2024/07/27
- [libmicrohttpd] 84/335: microhttpd2.h: edits, gnunet, 2024/07/27
- [libmicrohttpd] 56/335: md5_ext.c: fixed missing include, gnunet, 2024/07/27
- [libmicrohttpd] 85/335: Bump MHD_VERSION to indicate dev versions, gnunet, 2024/07/27
- [libmicrohttpd] 88/335: edits, gnunet, 2024/07/27
- [libmicrohttpd] 73/335: Fixed code logic for builds without messages,
gnunet <=
- [libmicrohttpd] 70/335: -whitespace and indentation changes only, gnunet, 2024/07/27
- [libmicrohttpd] 82/335: ChangeLog: updated, gnunet, 2024/07/27
- [libmicrohttpd] 62/335: microhttpd2.h edits, gnunet, 2024/07/27
- [libmicrohttpd] 96/335: report on m1, gnunet, 2024/07/27
- [libmicrohttpd] 79/335: Fixed compiler warnings for builds without Digest Auth, gnunet, 2024/07/27
- [libmicrohttpd] 81/335: digestauth: fixed compiler warnings, gnunet, 2024/07/27
- [libmicrohttpd] 78/335: Muted possible compiler warnings, gnunet, 2024/07/27
- [libmicrohttpd] 98/335: microhttpd2.h: edits and split, gnunet, 2024/07/27
- [libmicrohttpd] 99/335: daemon options draft script, gnunet, 2024/07/27
- [libmicrohttpd] 86/335: microhttpd2.h edits, gnunet, 2024/07/27