1
0
mirror of https://github.com/moparisthebest/curl synced 2025-02-28 09:21:50 -05:00

ftp_do_more: don't return success until all is done

ftp_do_more() returns after accepting the server connect however it
needs to fall through and set "*complete" to TRUE before exit from the
function.

Bug: http://curl.haxx.se/mail/lib-2011-12/0250.html
Reported by: Gokhan Sengun
This commit is contained in:
Daniel Stenberg 2011-12-24 00:12:00 +01:00
parent 4f8db8bf95
commit 99a12baa34

View File

@ -3703,8 +3703,6 @@ static CURLcode ftp_do_more(struct connectdata *conn, bool *complete)
if(result == CURLE_OK)
result = InitiateTransfer(conn);
}
return result;
}
else if(data->set.upload) {
result = ftp_nb_type(conn, data->set.prefer_ascii, FTP_STOR_TYPE);