aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/ftp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/ftp.c b/lib/ftp.c
index cae5361f2..25d1f958c 100644
--- a/lib/ftp.c
+++ b/lib/ftp.c
@@ -1488,7 +1488,7 @@ CURLcode ftp_use_pasv(struct connectdata *conn,
else
return CURLE_FTP_CANT_RECONNECT;
- if(data->change.proxy) {
+ if(data->change.proxy && *data->change.proxy) {
/*
* This is a tunnel through a http proxy and we need to connect to the
* proxy again here.