1
0
mirror of https://github.com/moparisthebest/curl synced 2024-08-13 17:03:50 -04:00

ftp_do_more: add missing check of return code

Spotted by clang-analyzer. The return code was never checked, just
stored.
This commit is contained in:
Daniel Stenberg 2012-07-13 14:12:39 +02:00
parent 771e91374b
commit 20ff8a0988

View File

@ -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) {