commit 0d6210fbfd9b6d3ddb17df767ad5b5bf4a8cac93
parent 922bf0e5c467cf0ddc7bb30d9de9f495f7b1229d
Author: Evgeny Grin (Karlson2k) <k2k@narod.ru>
Date: Wed, 28 Jul 2021 15:08:34 +0300
build_connection_chunked_response_footer: asserts added
Diffstat:
1 file changed, 2 insertions(+), 0 deletions(-)
diff --git a/src/microhttpd/connection.c b/src/microhttpd/connection.c
@@ -1825,7 +1825,9 @@ build_connection_chunked_response_footer (struct MHD_Connection *connection)
/* '2' is the minimal size of chunked footer ("\r\n") */
if (buf_size < 2)
return MHD_NO;
+ mhd_assert (NULL != c->write_buffer);
buf = c->write_buffer + c->write_buffer_append_offset;
+ mhd_assert (NULL != buf);
used_size = 0;
for (pos = c->response->first_header; NULL != pos; pos = pos->next)