diff --git a/lib/http.c b/lib/http.c index e0d3cda9b..c4d44b47c 100644 --- a/lib/http.c +++ b/lib/http.c @@ -151,7 +151,7 @@ CURLcode add_buffer_send(int sockfd, struct connectdata *conn, send_buffer *in, break; if(amount != size) { - size += amount; + size -= amount; ptr += amount; } else