mirror of
https://github.com/curl/curl.git
synced 2026-05-18 14:56:23 +03: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
1 changed files with 4 additions and 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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue