diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/ftp.c | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -3674,8 +3674,11 @@ static CURLcode ftp_do_more(struct connectdata *conn, bool *complete) /* It looks data connection is established */ result = AcceptServerConnect(conn); ftpc->wait_data_conn = FALSE; - if(result == CURLE_OK) + if(!result) result = InitiateTransfer(conn); + + if(result) + return result; } } else if(data->set.upload) { |