David McCreedy fixed a flaw where the CRLF counter wasn't properly cleared

for FTP ASCII transfers.
This commit is contained in:
Daniel Stenberg
2006-07-14 18:58:42 +00:00
parent bd8d4637a3
commit daef1cf34d
3 changed files with 9 additions and 1 deletions

View File

@@ -3930,6 +3930,9 @@ static CURLcode SetupConnection(struct connectdata *conn,
conn->bytecount = 0;
conn->headerbytecount = 0;
#ifdef CURL_DO_LINEEND_CONV
data->state.crlf_conversions = 0; /* reset CRLF conversion counter */
#endif /* CURL_DO_LINEEND_CONV */
if(CURL_SOCKET_BAD == conn->sock[FIRSTSOCKET]) {
bool connected = FALSE;