gnunet-svn
[Top][All Lists]
Advanced

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

[libmicrohttpd] 11/11: process_request_body(): added assert


From: gnunet
Subject: [libmicrohttpd] 11/11: process_request_body(): added assert
Date: Wed, 24 Nov 2021 19:08:24 +0100

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

karlson2k pushed a commit to branch master
in repository libmicrohttpd.

commit ad9fc5c65a7d9b240522d28204746e47d461ca53
Author: Evgeny Grin (Karlson2k) <k2k@narod.ru>
AuthorDate: Tue Nov 23 16:12:28 2021 +0300

    process_request_body(): added assert
---
 src/microhttpd/connection.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/microhttpd/connection.c b/src/microhttpd/connection.c
index d1736bc8..bbe363bd 100644
--- a/src/microhttpd/connection.c
+++ b/src/microhttpd/connection.c
@@ -3306,6 +3306,9 @@ process_request_body (struct MHD_Connection *connection)
     memmove (connection->read_buffer,
              buffer_head,
              available);
+  else
+    mhd_assert ((0 == available) || \
+                (connection->read_buffer_offset == available));
   connection->read_buffer_offset = available;
 }
 

-- 
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]