Don't dereference flags if NULL (see http.c rev 1.87)
This commit is contained in:
parent
dfcf25920b
commit
762892c047
@ -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))) {
|
||||
|
Loading…
Reference in New Issue
Block a user