From 4418f9df3027bf6a443be027c86f9338540cf6d3 Mon Sep 17 00:00:00 2001 From: Mike Makonnen Date: Wed, 19 Mar 2003 21:39:00 +0000 Subject: 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(-) (limited to 'lib/libfetch') 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"))) && -- cgit v1.3