diff options
Diffstat (limited to 'src/microhttpd/connection.c')
-rw-r--r-- | src/microhttpd/connection.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/microhttpd/connection.c b/src/microhttpd/connection.c index 10ac43bf..6e75ebd5 100644 --- a/src/microhttpd/connection.c +++ b/src/microhttpd/connection.c | |||
@@ -2100,9 +2100,9 @@ parse_connection_headers (struct MHD_Connection *connection) | |||
2100 | MHD_HTTP_HEADER_CONTENT_LENGTH); | 2100 | MHD_HTTP_HEADER_CONTENT_LENGTH); |
2101 | if (NULL != clen) | 2101 | if (NULL != clen) |
2102 | { | 2102 | { |
2103 | if (!MHD_str_to_uint64_ (clen, &connection->remaining_upload_size, | 2103 | end = clen + MHD_str_to_uint64_ (clen, |
2104 | &end) || | 2104 | &connection->remaining_upload_size); |
2105 | ('\0' != *end) ) | 2105 | if ( (clen == end) || ('\0' != *end) ) |
2106 | { | 2106 | { |
2107 | connection->remaining_upload_size = 0; | 2107 | connection->remaining_upload_size = 0; |
2108 | #ifdef HAVE_MESSAGES | 2108 | #ifdef HAVE_MESSAGES |