diff --git a/lib/ftp.c b/lib/ftp.c index 088cfaa5e75f6f38dc9896cb5efda23865aa52ef..a48286bd9277a85e085fc3ce20a0766635bb1f93 100644 --- a/lib/ftp.c +++ b/lib/ftp.c @@ -356,6 +356,8 @@ CURLcode Curl_GetFTPResponse(ssize_t *nreadp, /* return number of bytes read */ * line */ int i; + conn->headerbytecount += gotbytes; + *nreadp += gotbytes; for(i = 0; i < gotbytes; ptr++, i++) { perline++;