From owner-freebsd-bugs Thu Mar 16 7:20: 6 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 8647737BD2D for ; Thu, 16 Mar 2000 07:20:03 -0800 (PST) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.9.3/8.9.2) id HAA21638; Thu, 16 Mar 2000 07:20:03 -0800 (PST) (envelope-from gnats@FreeBSD.org) Date: Thu, 16 Mar 2000 07:20:03 -0800 (PST) Message-Id: <200003161520.HAA21638@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org Cc: From: Yoshinobu Inoue Subject: Re: conf/17406: nis in /etc/host.conf breaks network programs Reply-To: Yoshinobu Inoue 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: Yoshinobu Inoue To: sperber@informatik.uni-tuebingen.de Cc: freebsd-gnats-submit@FreeBSD.ORG, sheldonh@uunet.co.za Subject: Re: conf/17406: nis in /etc/host.conf breaks network programs Date: Fri, 17 Mar 2000 00:12:24 +0900 > >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: I confirmed that the problem also happens in my environment, and the attached patch fixed it in my environment. Could you please try this patch, and try ftp or telnet again after rebuilded and reinstalled src/lib/libc? Thanks, Yoshinobu Inoue Index: name6.c =================================================================== RCS file: /home/ncvs/src/lib/libc/net/name6.c,v retrieving revision 1.6 diff -u -r1.6 name6.c --- name6.c 2000/03/09 22:52:30 1.6 +++ name6.c 2000/03/16 15:08:32 @@ -840,7 +840,7 @@ static struct hostent * _nis_ghbyname(const char *name, int af, int *errp) { - struct hostent *hp; + struct hostent *hp = NULL; if (af == AF_INET) { hp = _gethostbynisname(name, af); To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message