From a65d822bcddd778066d956f8ca6b13db507b072b Mon Sep 17 00:00:00 2001 From: mtm Date: Wed, 19 Mar 2003 21:39:00 +0000 Subject: [PATCH] The flags passed in to _ftp_get_proxy may be null Approved by: des, markm (mentor)(implicit) --- lib/libfetch/ftp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/libfetch/ftp.c b/lib/libfetch/ftp.c index b2550b11289a..ffc4462f20bd 100644 --- a/lib/libfetch/ftp.c +++ b/lib/libfetch/ftp.c @@ -894,7 +894,7 @@ _ftp_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("FTP_PROXY")) || (p = getenv("ftp_proxy")) || (p = getenv("HTTP_PROXY")) || (p = getenv("http_proxy"))) &&