mirror of
https://github.com/curl/curl.git
synced 2026-06-05 15:44:17 +03:00
avoid setting up a transfer when the state machine failed previously
This commit is contained in:
parent
7f62028d66
commit
2ec8f77f21
1 changed files with 2 additions and 2 deletions
|
|
@ -3525,10 +3525,10 @@ static CURLcode Curl_ftp_nextconnect(struct connectdata *conn)
|
|||
result = ftp_easy_statemach(conn);
|
||||
}
|
||||
|
||||
if(ftp->transfer != FTPTRANSFER_BODY)
|
||||
if((result == CURLE_OK) && (ftp->transfer != FTPTRANSFER_BODY))
|
||||
/* no data to transfer. FIX: it feels like a kludge to have this here
|
||||
too! */
|
||||
result=Curl_setup_transfer(conn, -1, -1, FALSE, NULL, -1, NULL);
|
||||
result = Curl_setup_transfer(conn, -1, -1, FALSE, NULL, -1, NULL);
|
||||
|
||||
/* end of transfer */
|
||||
DEBUGF(infof(data, "DO-MORE phase ends with %d\n", result));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue