diff options
author | des <des@FreeBSD.org> | 2003-03-29 15:15:38 +0000 |
---|---|---|
committer | des <des@FreeBSD.org> | 2003-03-29 15:15:38 +0000 |
commit | 32c9a8b0bdd8b9e940a8a785201551710c4524bc (patch) | |
tree | f79a842824bc5a52968d83828c56e002ae1668c1 /lib/libfetch/http.c | |
parent | a28b5968f3f9ecb655c239089a3c8a1ad7eeab59 (diff) | |
download | FreeBSD-src-32c9a8b0bdd8b9e940a8a785201551710c4524bc.zip FreeBSD-src-32c9a8b0bdd8b9e940a8a785201551710c4524bc.tar.gz |
Don't dereference flags if NULL (see http.c rev 1.87)
Diffstat (limited to 'lib/libfetch/http.c')
-rw-r--r-- | lib/libfetch/http.c | 2 |
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))) { |