summaryrefslogtreecommitdiff
path: root/libfetch/ftp.c
diff options
context:
space:
mode:
Diffstat (limited to 'libfetch/ftp.c')
-rw-r--r--libfetch/ftp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libfetch/ftp.c b/libfetch/ftp.c
index 80f77d9..d489559 100644
--- a/libfetch/ftp.c
+++ b/libfetch/ftp.c
@@ -1020,7 +1020,7 @@ ftp_connect(struct url *url, struct url *purl, const char *flags)
if (!purl->port)
purl->port = fetch_default_port(purl->scheme);
- conn = fetch_connect(purl, af, verbose);
+ conn = fetch_connect(purl, purl, af, verbose);
} else {
/* no proxy, go straight to target */
if (!url->port)
@@ -1032,7 +1032,7 @@ ftp_connect(struct url *url, struct url *purl, const char *flags)
return conn;
fetch_close(conn);
}
- conn = fetch_connect(url, af, verbose);
+ conn = fetch_connect(url, url, af, verbose);
purl = NULL;
}