aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2006-07-14 18:58:42 +0000
committerDaniel Stenberg <daniel@haxx.se>2006-07-14 18:58:42 +0000
commitdaef1cf34d6df8b199cf2081bda4b1b4d1916b97 (patch)
treec2accf81ece3be15c7bd132d3871c0e0627413b1 /lib
parentbd8d4637a3fe71ac911c1ff54b30beca47f81f76 (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.c3
1 files changed, 3 insertions, 0 deletions
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;