mirror of
https://github.com/moparisthebest/curl
synced 2024-11-11 20:15:03 -05: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:
parent
771e91374b
commit
20ff8a0988
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user