]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
don't claim the PASV connect is connected unless it *really* is!
authorDaniel Stenberg <daniel@haxx.se>
Sun, 10 Aug 2003 17:11:41 +0000 (17:11 +0000)
committerDaniel Stenberg <daniel@haxx.se>
Sun, 10 Aug 2003 17:11:41 +0000 (17:11 +0000)
lib/ftp.c

index 52edd176319fb3d49ba62f54fa61e170128375bd..a79f94277f287b39180c33c99d83c89e04704f90 100644 (file)
--- a/lib/ftp.c
+++ b/lib/ftp.c
@@ -2114,7 +2114,7 @@ CURLcode ftp_perform(struct connectdata *conn,
   else {
     /* We have chosen (this is default) to use the PASV command */
     result = ftp_use_pasv(conn, connected);
-    if(connected)
+    if(!result && *connected)
       infof(data, "Connected the data stream with PASV!\n");
   }