diff options
author | Evgeny Grin (Karlson2k) <k2k@narod.ru> | 2021-06-04 15:52:38 +0300 |
---|---|---|
committer | Evgeny Grin (Karlson2k) <k2k@narod.ru> | 2021-06-04 15:52:38 +0300 |
commit | 732bc0a0c3971ede380a6237635f383745515aa0 (patch) | |
tree | c92bf8a8b07de403ad482819ef942773a42b2730 | |
parent | 2ccc281a69a056bc4fe72b829604037fa3792bfc (diff) | |
download | libmicrohttpd-732bc0a0c3971ede380a6237635f383745515aa0.tar.gz libmicrohttpd-732bc0a0c3971ede380a6237635f383745515aa0.zip |
connection: fixed wrong read buffer reallocation
-rw-r--r-- | src/microhttpd/connection.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/microhttpd/connection.c b/src/microhttpd/connection.c index 5038b378..b240e14a 100644 --- a/src/microhttpd/connection.c +++ b/src/microhttpd/connection.c | |||
@@ -3044,7 +3044,7 @@ MHD_connection_handle_read (struct MHD_Connection *connection) | |||
3044 | /* shrink read buffer to how much is actually used */ | 3044 | /* shrink read buffer to how much is actually used */ |
3045 | MHD_pool_reallocate (connection->pool, | 3045 | MHD_pool_reallocate (connection->pool, |
3046 | connection->read_buffer, | 3046 | connection->read_buffer, |
3047 | connection->read_buffer_size + 1, | 3047 | connection->read_buffer_size, |
3048 | connection->read_buffer_offset); | 3048 | connection->read_buffer_offset); |
3049 | break; | 3049 | break; |
3050 | } | 3050 | } |