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

@ -6,6 +6,10 @@
Changelog
Daniel (14 July 2006)
- David McCreedy fixed a flaw where the CRLF counter wasn't properly cleared
for FTP ASCII transfers.
Daniel (8 July 2006)
- Ates Goral pointed out that libcurl's cookie parser did case insensitive
string comparisons on the path which is incorrect and provided a patch that

View File

@ -18,6 +18,7 @@ This release includes the following changes:
This release includes the following bugfixes:
o FTP ASCII CRLF counter reset
o cookie parser now compares paths case sensitive
o an easy handle with shared DNS cache added to a multi handle caused a crash
o couldn't override the Proxy-Connection: header for non-CONNECT requests
@ -38,6 +39,6 @@ This release would not have looked like this without help, code, reports and
advice from friends like these:
Dan Fandrich, Peter Silva, Arve Knudsen, Michael Wallner, Toshiyuki Maezawa,
Ingmar Runge, Ates Goral
Ingmar Runge, Ates Goral, David McCreedy
Thanks! (and sorry if I forgot to mention someone)

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;