commit d732c2d43e221d8149a07e87eedb81cf6f7d6737
parent ae49c200af866f3be80a0538e2c428cdcd7e3010
Author: Evgeny Grin (Karlson2k) <k2k@narod.ru>
Date: Sun, 11 Oct 2020 22:10:35 +0300
connection.c: tuned assert
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/microhttpd/connection.c b/src/microhttpd/connection.c
@@ -2958,7 +2958,7 @@ MHD_connection_handle_write (struct MHD_Connection *connection)
{
const size_t wb_ready = connection->write_buffer_append_offset
- connection->write_buffer_send_offset;
- mhd_assert (connection->write_buffer_append_offset > \
+ mhd_assert (connection->write_buffer_append_offset >= \
connection->write_buffer_send_offset);
/* if the response body is not available, we use MHD_send_on_connection_() */