mirror of
https://git.gnunet.org/libmicrohttpd.git
synced 2026-09-25 04:09:31 +03:00
process_request_body(): do not move data if nothing was processed
This commit is contained in:
@@ -2804,7 +2804,8 @@ process_request_body (struct MHD_Connection *connection)
|
||||
connection->remaining_upload_size -= processed_size;
|
||||
}
|
||||
while (MHD_YES == instant_retry);
|
||||
if (available > 0)
|
||||
if ( (available > 0) &&
|
||||
(buffer_head != connection->read_buffer) )
|
||||
memmove (connection->read_buffer,
|
||||
buffer_head,
|
||||
available);
|
||||
|
||||
Reference in New Issue
Block a user