diff options
author | Daniel Stenberg <daniel@haxx.se> | 2019-09-19 09:18:26 +0200 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2019-09-19 09:18:26 +0200 |
commit | fe153d1e80ac1bb9941876cedb6b9231d8ce91bf (patch) | |
tree | a074138f45a28b00c1930d41832f4f81867e3312 | |
parent | 56be60bb0d81c8ffb7b15f51aa3e27ba6951381c (diff) | |
download | curl-fe153d1e80ac1bb9941876cedb6b9231d8ce91bf.tar.gz |
ftp: Expression 'ftpc->wait_data_conn' is always false.
-rw-r--r-- | lib/ftp.c | 9 |
1 files changed, 2 insertions, 7 deletions
@@ -3570,13 +3570,8 @@ static CURLcode ftp_do_more(struct connectdata *conn, int *completep) return result; result = ftp_multi_statemach(conn, &complete); - 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; - else - *completep = (int)complete; + /* ftpc->wait_data_conn is always false here */ + *completep = (int)complete; } else { /* download */ |