diff options
author | Evgeny Grin (Karlson2k) <k2k@narod.ru> | 2022-05-05 15:06:16 +0300 |
---|---|---|
committer | Evgeny Grin (Karlson2k) <k2k@narod.ru> | 2022-05-05 15:06:59 +0300 |
commit | 1c58c968ced8a3401bd6c5006eb47a92a5998c02 (patch) | |
tree | 2c32b5ae3f52518c15d721c95dcf068e4babb33b /src/microhttpd/connection.c | |
parent | 86f53a3dda1e63607b60ccacec24d7f31f3b7fc7 (diff) | |
download | libmicrohttpd-1c58c968ced8a3401bd6c5006eb47a92a5998c02.tar.gz libmicrohttpd-1c58c968ced8a3401bd6c5006eb47a92a5998c02.zip |
Fixed wrong (inverted) asserts
Diffstat (limited to 'src/microhttpd/connection.c')
-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 0a3dc282..93408eb7 100644 --- a/src/microhttpd/connection.c +++ b/src/microhttpd/connection.c | |||
@@ -1189,7 +1189,7 @@ try_ready_chunked_body (struct MHD_Connection *connection, | |||
1189 | const size_t data_write_offset | 1189 | const size_t data_write_offset |
1190 | = (size_t) (connection->response_write_position - response->data_start); | 1190 | = (size_t) (connection->response_write_position - response->data_start); |
1191 | /* buffer already ready, use what is there for the chunk */ | 1191 | /* buffer already ready, use what is there for the chunk */ |
1192 | mhd_assert (SSIZE_MAX < (response->data_size - data_write_offset)); | 1192 | mhd_assert (SSIZE_MAX >= (response->data_size - data_write_offset)); |
1193 | mhd_assert (response->data_size >= data_write_offset); | 1193 | mhd_assert (response->data_size >= data_write_offset); |
1194 | ret = (ssize_t) (response->data_size - data_write_offset); | 1194 | ret = (ssize_t) (response->data_size - data_write_offset); |
1195 | if ( ((size_t) ret) > size_to_fill) | 1195 | if ( ((size_t) ret) > size_to_fill) |