diff options
author | Daniel Stenberg <daniel@haxx.se> | 2006-07-14 18:58:42 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2006-07-14 18:58:42 +0000 |
commit | daef1cf34d6df8b199cf2081bda4b1b4d1916b97 (patch) | |
tree | c2accf81ece3be15c7bd132d3871c0e0627413b1 /lib | |
parent | bd8d4637a3fe71ac911c1ff54b30beca47f81f76 (diff) |
David McCreedy fixed a flaw where the CRLF counter wasn't properly cleared
for FTP ASCII transfers.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/url.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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; |