]> granicus.if.org Git - curl/commitdiff
ftp_do_more: don't return success until all is done
authorDaniel Stenberg <daniel@haxx.se>
Fri, 23 Dec 2011 23:12:00 +0000 (00:12 +0100)
committerDaniel Stenberg <daniel@haxx.se>
Fri, 23 Dec 2011 23:12:00 +0000 (00:12 +0100)
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

lib/ftp.c

index 6f6a54a6d41e47da96d4adc22fd66fe661523603..8f4ac1e7ff1b6b1467727d3028dbe1cd051c1304 100644 (file)
--- 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);