mirror of
https://github.com/curl/curl.git
synced 2025-09-16 00:52:42 +03:00
ftp: remove dead code
This condition can never be true here since it is handled already 28 lines above. Pointed out by PVS. Ref: #10929 Closes #10957
This commit is contained in:
parent
aabfa60371
commit
41a53b159d
10
lib/ftp.c
10
lib/ftp.c
|
@ -3621,7 +3621,7 @@ static CURLcode ftp_do_more(struct Curl_easy *data, int *completep)
|
||||||
/* a transfer is about to take place, or if not a file name was given
|
/* a transfer is about to take place, or if not a file name was given
|
||||||
so we'll do a SIZE on it later and then we need the right TYPE first */
|
so we'll do a SIZE on it later and then we need the right TYPE first */
|
||||||
|
|
||||||
if(ftpc->wait_data_conn == TRUE) {
|
if(ftpc->wait_data_conn) {
|
||||||
bool serv_conned;
|
bool serv_conned;
|
||||||
|
|
||||||
result = ReceivedServerConnect(data, &serv_conned);
|
result = ReceivedServerConnect(data, &serv_conned);
|
||||||
|
@ -3649,13 +3649,7 @@ static CURLcode ftp_do_more(struct Curl_easy *data, int *completep)
|
||||||
return result;
|
return result;
|
||||||
|
|
||||||
result = ftp_multi_statemach(data, &complete);
|
result = ftp_multi_statemach(data, &complete);
|
||||||
if(ftpc->wait_data_conn)
|
*completep = (int)complete;
|
||||||
/* if we reach the end of the FTP state machine here, *complete will be
|
|
||||||
TRUE but so is ftpc->wait_data_conn, which says we need to wait for
|
|
||||||
the data connection and therefore we're not actually complete */
|
|
||||||
*completep = 0;
|
|
||||||
else
|
|
||||||
*completep = (int)complete;
|
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
/* download */
|
/* download */
|
||||||
|
|
Loading…
Reference in New Issue
Block a user