Date: Wed, 19 Mar 2003 12:28:06 -0500 From: Mike Makonnen <mtm@identd.net> To: "Scott Sipe" <cscotts@mindspring.com> Cc: des@freebsd.org, joris@vandalon.nl, freebsd-current@FreeBSD.ORG Subject: Re: pkg_add segfault Message-ID: <20030319172807.KLJI6546.out002.verizon.net@kokeb.ambesa.net> In-Reply-To: <006801c2ee2e$a43099b0$60ee1098@stark> References: <20030319151959.GA643@mezzanine.vandalon.nl> <006801c2ee2e$a43099b0$60ee1098@stark>
next in thread | previous in thread | raw e-mail | index | archive | help
Here's a patch. Des, is this ok with you? Cheers. -- Mike Makonnen | GPG-KEY: http://www.identd.net/~mtm/mtm.asc mtm@identd.net | Fingerprint: D228 1A6F C64E 120A A1C9 A3AA DAE1 E2AF DBCC 68B9 Index: lib/libfetch/ftp.c =================================================================== RCS file: /home/ncvs/src/lib/libfetch/ftp.c,v retrieving revision 1.86 diff -u -r1.86 ftp.c --- lib/libfetch/ftp.c 11 Mar 2003 08:20:58 -0000 1.86 +++ lib/libfetch/ftp.c 19 Mar 2003 17:24:20 -0000 @@ -894,7 +894,7 @@ 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"))) && To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030319172807.KLJI6546.out002.verizon.net>