aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2003-08-10 17:11:41 +0000
committerDaniel Stenberg <daniel@haxx.se>2003-08-10 17:11:41 +0000
commit5dadbd094e58ed1f6c701381175ffa35224e8aec (patch)
tree448d90dd8d7e2d9a1c04ff48a63229f474992e4c /lib
parent514a8739b669fa473560559a5cae225634bcc2f5 (diff)
don't claim the PASV connect is connected unless it *really* is!
Diffstat (limited to 'lib')
-rw-r--r--lib/ftp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/ftp.c b/lib/ftp.c
index 52edd1763..a79f94277 100644
--- 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");
}