mirror of
https://github.com/moparisthebest/curl
synced 2024-12-24 09:08:49 -05:00
ftp: Expression 'ftpc->wait_data_conn' is always true
Fixes warning detected by PVS-Studio Fixes #4374
This commit is contained in:
parent
97c17e9fcb
commit
a50c3d7fa0
11
lib/ftp.c
11
lib/ftp.c
@ -3530,14 +3530,13 @@ static CURLcode ftp_do_more(struct connectdata *conn, int *completep)
|
||||
|
||||
/* if we got an error or if we don't wait for a data connection return
|
||||
immediately */
|
||||
if(result || (ftpc->wait_data_conn != TRUE))
|
||||
if(result || !ftpc->wait_data_conn)
|
||||
return result;
|
||||
|
||||
if(ftpc->wait_data_conn)
|
||||
/* 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;
|
||||
/* 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;
|
||||
}
|
||||
|
||||
if(ftp->transfer <= FTPTRANSFER_INFO) {
|
||||
|
Loading…
Reference in New Issue
Block a user