Date: Wed, 19 Mar 2003 18:32:30 +0100 From: Joris Vandalon <joris@vandalon.nl> To: Mike Makonnen <mtm@identd.net> Cc: Scott Sipe <cscotts@mindspring.com>, des@freebsd.org, freebsd-current@FreeBSD.ORG Subject: Re: pkg_add segfault Message-ID: <20030319173230.GA72546@mezzanine.vandalon.nl> In-Reply-To: <20030319172807.KLJI6546.out002.verizon.net@kokeb.ambesa.net> References: <20030319151959.GA643@mezzanine.vandalon.nl> <006801c2ee2e$a43099b0$60ee1098@stark> <20030319172807.KLJI6546.out002.verizon.net@kokeb.ambesa.net>
next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, Mar 19, 2003 at 12:28:06PM -0500, Mike Makonnen wrote: > Here's a patch. Tnx, works fine now Regards, Joris > > 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 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?20030319173230.GA72546>