From f2022037751170a4dbecfcccec43386b53442680 Mon Sep 17 00:00:00 2001 From: des Date: Wed, 24 Aug 2005 12:28:05 +0000 Subject: Ignore HTTP_PROXY if it is defined but empty. This was already handled correctly in the case of FTP_PROXY, because an empty FTP_PROXY has a specific meaning ("don't use any proxy at all for ftp, even if HTTP_PROXY is defined"), while an empty HTTP_PROXY has no meaning at all. PR: bin/85185 Submitted by: Conall O'Brien MFC after: 2 weeks --- lib/libfetch/http.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/libfetch/http.c') diff --git a/lib/libfetch/http.c b/lib/libfetch/http.c index bac7b0f..1af13ab 100644 --- a/lib/libfetch/http.c +++ b/lib/libfetch/http.c @@ -724,7 +724,7 @@ _http_get_proxy(const char *flags) if (flags != NULL && strchr(flags, 'd') != NULL) return (NULL); if (((p = getenv("HTTP_PROXY")) || (p = getenv("http_proxy"))) && - (purl = fetchParseURL(p))) { + *p && (purl = fetchParseURL(p))) { if (!*purl->scheme) strcpy(purl->scheme, SCHEME_HTTP); if (!purl->port) -- cgit v1.1