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 52edd17..a79f942 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");
   }