diff options
author | Daniel Stenberg <daniel@haxx.se> | 2012-07-13 14:12:39 +0200 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2012-07-13 14:12:39 +0200 |
commit | 20ff8a0988d844910ff3621f75f99907aebeef4b (patch) | |
tree | d0f99ac562e405fe95ba7278e4fde9f4f40fa92e /lib | |
parent | 771e91374b7e68c8c0d20af63821c29598964fa0 (diff) |
ftp_do_more: add missing check of return code
Spotted by clang-analyzer. The return code was never checked, just
stored.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/ftp.c | 5 |
1 files changed, 4 insertions, 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) { |