From daef1cf34d6df8b199cf2081bda4b1b4d1916b97 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Fri, 14 Jul 2006 18:58:42 +0000 Subject: David McCreedy fixed a flaw where the CRLF counter wasn't properly cleared for FTP ASCII transfers. --- lib/url.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'lib') diff --git a/lib/url.c b/lib/url.c index 6e50e7a03..e7537c6ec 100644 --- a/lib/url.c +++ b/lib/url.c @@ -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; -- cgit v1.2.3