summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authormtm <mtm@FreeBSD.org>2003-03-19 21:39:00 +0000
committermtm <mtm@FreeBSD.org>2003-03-19 21:39:00 +0000
commita65d822bcddd778066d956f8ca6b13db507b072b (patch)
tree2f960bd2f340a6f74b7dda4490f2d4333e0bd78f /lib
parent59b094fe433df03e75ead72dc2feac3c6b20c554 (diff)
downloadFreeBSD-src-a65d822bcddd778066d956f8ca6b13db507b072b.zip
FreeBSD-src-a65d822bcddd778066d956f8ca6b13db507b072b.tar.gz
The flags passed in to _ftp_get_proxy may be null
Approved by: des, markm (mentor)(implicit)
Diffstat (limited to 'lib')
-rw-r--r--lib/libfetch/ftp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libfetch/ftp.c b/lib/libfetch/ftp.c
index b2550b1..ffc4462 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"))) &&
OpenPOWER on IntegriCloud