summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authordes <des@FreeBSD.org>2003-03-29 15:15:38 +0000
committerdes <des@FreeBSD.org>2003-03-29 15:15:38 +0000
commit32c9a8b0bdd8b9e940a8a785201551710c4524bc (patch)
treef79a842824bc5a52968d83828c56e002ae1668c1 /lib
parenta28b5968f3f9ecb655c239089a3c8a1ad7eeab59 (diff)
downloadFreeBSD-src-32c9a8b0bdd8b9e940a8a785201551710c4524bc.zip
FreeBSD-src-32c9a8b0bdd8b9e940a8a785201551710c4524bc.tar.gz
Don't dereference flags if NULL (see http.c rev 1.87)
Diffstat (limited to 'lib')
-rw-r--r--lib/libfetch/http.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libfetch/http.c b/lib/libfetch/http.c
index 1fc4cd5..86f7075 100644
--- a/lib/libfetch/http.c
+++ b/lib/libfetch/http.c
@@ -701,7 +701,7 @@ _http_get_proxy(const char *flags)
struct url *purl;
char *p;
- if (strchr(flags, 'd') != NULL)
+ if (flags != NULL && strchr(flags, 'd') != NULL)
return (NULL);
if (((p = getenv("HTTP_PROXY")) || (p = getenv("http_proxy"))) &&
(purl = fetchParseURL(p))) {
OpenPOWER on IntegriCloud