mirror of
https://github.com/curl/curl.git
synced 2025-01-18 14:04:30 +08: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 */
|
/* It looks data connection is established */
|
||||||
result = AcceptServerConnect(conn);
|
result = AcceptServerConnect(conn);
|
||||||
ftpc->wait_data_conn = FALSE;
|
ftpc->wait_data_conn = FALSE;
|
||||||
if(result == CURLE_OK)
|
if(!result)
|
||||||
result = InitiateTransfer(conn);
|
result = InitiateTransfer(conn);
|
||||||
|
|
||||||
|
if(result)
|
||||||
|
return result;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else if(data->set.upload) {
|
else if(data->set.upload) {
|
||||||
|
Loading…
Reference in New Issue
Block a user