summaryrefslogtreecommitdiff
path: root/net/libfetch/files/http.c
diff options
context:
space:
mode:
authorjoerg <joerg@pkgsrc.org>2014-01-08 20:25:34 +0000
committerjoerg <joerg@pkgsrc.org>2014-01-08 20:25:34 +0000
commit602b9deeb12e113e9d47fb409ad0bfc9c2fbf15c (patch)
tree069f03bd783872116e48d2c7306235105969fbb8 /net/libfetch/files/http.c
parentfe7654afa81f3a3b66f32d7bae36744023368a29 (diff)
downloadpkgsrc-602b9deeb12e113e9d47fb409ad0bfc9c2fbf15c.tar.gz
Pass URL to fetch_ssl to fix build and add a cast for some OpenSSL
constloss.
Diffstat (limited to 'net/libfetch/files/http.c')
-rw-r--r--net/libfetch/files/http.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/net/libfetch/files/http.c b/net/libfetch/files/http.c
index d3b0fb03ba8..18a24e680b4 100644
--- a/net/libfetch/files/http.c
+++ b/net/libfetch/files/http.c
@@ -1,4 +1,4 @@
-/* $NetBSD: http.c,v 1.34 2014/01/07 23:25:12 joerg Exp $ */
+/* $NetBSD: http.c,v 1.35 2014/01/08 20:25:34 joerg Exp $ */
/*-
* Copyright (c) 2000-2004 Dag-Erling Coïdan Smørgrav
* Copyright (c) 2003 Thomas Klausner <wiz@NetBSD.org>
@@ -752,7 +752,7 @@ http_connect(struct url *URL, struct url *purl, const char *flags, int *cached)
/* fetch_connect() has already set an error code */
return (NULL);
if (strcasecmp(URL->scheme, SCHEME_HTTPS) == 0 &&
- fetch_ssl(conn, verbose) == -1) {
+ fetch_ssl(conn, URL, verbose) == -1) {
fetch_close(conn);
/* grrr */
#ifdef EAUTH