aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEvgeny Grin (Karlson2k) <k2k@narod.ru>2021-11-23 16:12:28 +0300
committerEvgeny Grin (Karlson2k) <k2k@narod.ru>2021-11-24 19:09:31 +0300
commitad9fc5c65a7d9b240522d28204746e47d461ca53 (patch)
treef5d1b00a644bc5ef6e2b140c77ffa9c242d96b8a
parentf8ed20822b863e7ff892b57e7df089e998c327f2 (diff)
downloadlibmicrohttpd-ad9fc5c65a7d9b240522d28204746e47d461ca53.tar.gz
libmicrohttpd-ad9fc5c65a7d9b240522d28204746e47d461ca53.zip
process_request_body(): added assert
-rw-r--r--src/microhttpd/connection.c3
1 files changed, 3 insertions, 0 deletions
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)
3306 memmove (connection->read_buffer, 3306 memmove (connection->read_buffer,
3307 buffer_head, 3307 buffer_head,
3308 available); 3308 available);
3309 else
3310 mhd_assert ((0 == available) || \
3311 (connection->read_buffer_offset == available));
3309 connection->read_buffer_offset = available; 3312 connection->read_buffer_offset = available;
3310} 3313}
3311 3314