diff options
Diffstat (limited to 'libfetch/common.c')
-rw-r--r-- | libfetch/common.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libfetch/common.c b/libfetch/common.c index aabe218..e91b0c6 100644 --- a/libfetch/common.c +++ b/libfetch/common.c @@ -251,7 +251,7 @@ fetch_bind(int sd, int af, const char *addr) * Establish a TCP connection to the specified port on the specified host. */ conn_t * -fetch_connect(struct url *url, int af, int verbose) +fetch_connect(struct url *cache_url, struct url *url, int af, int verbose) { conn_t *conn; char pbuf[10]; @@ -303,7 +303,7 @@ fetch_connect(struct url *url, int af, int verbose) close(sd); return (NULL); } - conn->cache_url = fetchCopyURL(url); + conn->cache_url = fetchCopyURL(cache_url); conn->cache_af = af; return (conn); } |