From owner-freebsd-current Wed Mar 19 9:32:35 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C0B1A37B401; Wed, 19 Mar 2003 09:32:33 -0800 (PST) Received: from mezzanine.vandalon.nl (cp25482-a.gelen1.lb.home.nl [217.120.68.13]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3670443FA3; Wed, 19 Mar 2003 09:32:32 -0800 (PST) (envelope-from wiebel@mezzanine.vandalon.nl) Received: by mezzanine.vandalon.nl (Postfix, from userid 1000) id C61E92A903; Wed, 19 Mar 2003 18:32:30 +0100 (CET) Date: Wed, 19 Mar 2003 18:32:30 +0100 From: Joris Vandalon To: Mike Makonnen Cc: Scott Sipe , des@freebsd.org, freebsd-current@FreeBSD.ORG Subject: Re: pkg_add segfault Message-ID: <20030319173230.GA72546@mezzanine.vandalon.nl> References: <20030319151959.GA643@mezzanine.vandalon.nl> <006801c2ee2e$a43099b0$60ee1098@stark> <20030319172807.KLJI6546.out002.verizon.net@kokeb.ambesa.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030319172807.KLJI6546.out002.verizon.net@kokeb.ambesa.net> User-Agent: Mutt/1.4i Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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