summaryrefslogtreecommitdiff
path: root/lib/libfetch/http.c
diff options
context:
space:
mode:
authorDag-Erling Smørgrav <des@FreeBSD.org>2002-06-05 21:35:35 +0000
committerDag-Erling Smørgrav <des@FreeBSD.org>2002-06-05 21:35:35 +0000
commit3070f6cb064bd947d7bb60f555f9e6e9c2d5ad20 (patch)
tree0509c1c0fc4b92c600c8202a518165929fa017e2 /lib/libfetch/http.c
parenteb5cb11b701be7e684b8dcd1775dba39a0b0e917 (diff)
Notes
Diffstat (limited to 'lib/libfetch/http.c')
-rw-r--r--lib/libfetch/http.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/libfetch/http.c b/lib/libfetch/http.c
index 7b897a81ee93..68497e9b6042 100644
--- a/lib/libfetch/http.c
+++ b/lib/libfetch/http.c
@@ -683,6 +683,9 @@ _http_connect(struct url *URL, struct url *purl, const char *flags)
if (strcasecmp(URL->scheme, SCHEME_HTTPS) == 0 &&
_fetch_ssl(conn, verbose) == -1) {
_fetch_close(conn);
+ /* grrr */
+ errno = EAUTH;
+ _fetch_syserr();
return (NULL);
}
return (conn);