From owner-freebsd-bugs Sun Mar 19 4: 0:15 2000 Delivered-To: freebsd-bugs@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (Postfix) with ESMTP id 515E637B726 for ; Sun, 19 Mar 2000 04:00:05 -0800 (PST) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.9.3/8.9.2) id EAA55820; Sun, 19 Mar 2000 04:00:04 -0800 (PST) (envelope-from gnats@FreeBSD.org) Date: Sun, 19 Mar 2000 04:00:04 -0800 (PST) Message-Id: <200003191200.EAA55820@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org Cc: From: sperber@informatik.uni-tuebingen.de (Michael Sperber [Mr. Preprocessor]) Subject: Re: conf/17406: nis in /etc/host.conf breaks network programs Reply-To: sperber@informatik.uni-tuebingen.de (Michael Sperber [Mr. Preprocessor]) Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org The following reply was made to PR conf/17406; it has been noted by GNATS. From: sperber@informatik.uni-tuebingen.de (Michael Sperber [Mr. Preprocessor]) To: Yoshinobu Inoue Cc: freebsd-gnats-submit@freebsd.org, sheldonh@uunet.co.za Subject: Re: conf/17406: nis in /etc/host.conf breaks network programs Date: 19 Mar 2000 12:59:23 +0100 >>>>> "YI" == Yoshinobu Inoue writes: >> >Description: >> Putting nis anywhere in /etc/host.conf makes basically every network >> program (like ftp or telnet) segfault upon startup. >> >How-To-Repeat: >> Put nis in /etc/host.conf, do ftp ftp.freebsd.org. >> >Fix: YI> I confirmed that the problem also happens in my environment, YI> and the attached patch fixed it in my environment. Could you YI> please try this patch, and try ftp or telnet again after YI> rebuilded and reinstalled src/lib/libc? YI> Thanks, YI> Yoshinobu Inoue YI> Index: name6.c YI> =================================================================== YI> RCS file: /home/ncvs/src/lib/libc/net/name6.c,v YI> retrieving revision 1.6 YI> diff -u -r1.6 name6.c YI> --- name6.c 2000/03/09 22:52:30 1.6 YI> +++ name6.c 2000/03/16 15:08:32 YI> @@ -840,7 +840,7 @@ YI> static struct hostent * YI> _nis_ghbyname(const char *name, int af, int *errp) YI> { YI> - struct hostent *hp; YI> + struct hostent *hp = NULL; YI> if (af == AF_INET) { YI> hp = _gethostbynisname(name, af); That fixes it, indeed. Thanks! -- Cheers =8-} Mike Friede, Völkerverständigung und überhaupt blabla To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message