mirror of
https://github.com/curl/curl.git
synced 2026-08-07 02:28:48 +03:00
David McCreedy fixed a flaw where the CRLF counter wasn't properly cleared
for FTP ASCII transfers.
This commit is contained in:
parent
bd8d4637a3
commit
daef1cf34d
3 changed files with 9 additions and 1 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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue