commit 732bc0a0c3971ede380a6237635f383745515aa0
parent 2ccc281a69a056bc4fe72b829604037fa3792bfc
Author: Evgeny Grin (Karlson2k) <k2k@narod.ru>
Date: Fri, 4 Jun 2021 15:52:38 +0300
connection: fixed wrong read buffer reallocation
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/microhttpd/connection.c b/src/microhttpd/connection.c
@@ -3044,7 +3044,7 @@ MHD_connection_handle_read (struct MHD_Connection *connection)
/* shrink read buffer to how much is actually used */
MHD_pool_reallocate (connection->pool,
connection->read_buffer,
- connection->read_buffer_size + 1,
+ connection->read_buffer_size,
connection->read_buffer_offset);
break;
}