Commit 2ec8f77f authored by Daniel Stenberg's avatar Daniel Stenberg
Browse files

avoid setting up a transfer when the state machine failed previously

parent 7f62028d
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -3525,7 +3525,7 @@ 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);