aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2011-12-24 00:12:00 +0100
committerDaniel Stenberg <daniel@haxx.se>2011-12-24 00:12:00 +0100
commit99a12baa34b59b14d9b43c00e882cfe1d6b0403d (patch)
treea34a7332c8c28e4c284045db341ae91a93d07e03
parent4f8db8bf957b4e3efafa517ba14770dac7781204 (diff)
ftp_do_more: don't return success until all is done
ftp_do_more() returns after accepting the server connect however it needs to fall through and set "*complete" to TRUE before exit from the function. Bug: http://curl.haxx.se/mail/lib-2011-12/0250.html Reported by: Gokhan Sengun
-rw-r--r--lib/ftp.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/lib/ftp.c b/lib/ftp.c
index 6f6a54a6d..8f4ac1e7f 100644
--- a/lib/ftp.c
+++ b/lib/ftp.c
@@ -3703,8 +3703,6 @@ static CURLcode ftp_do_more(struct connectdata *conn, bool *complete)
if(result == CURLE_OK)
result = InitiateTransfer(conn);
}
-
- return result;
}
else if(data->set.upload) {
result = ftp_nb_type(conn, data->set.prefer_ascii, FTP_STOR_TYPE);