summaryrefslogtreecommitdiffstats
path: root/lib/libfetch/http.c
diff options
context:
space:
mode:
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 7b897a8..68497e9 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);
OpenPOWER on IntegriCloud