aboutsummaryrefslogtreecommitdiff
path: root/lib/ftp.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/ftp.c')
-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");
}