Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 19 Mar 2000 04:00:04 -0800 (PST)
From:      sperber@informatik.uni-tuebingen.de (Michael Sperber [Mr. Preprocessor])
To:        freebsd-bugs@FreeBSD.org
Subject:   Re: conf/17406: nis in /etc/host.conf breaks network programs
Message-ID:  <200003191200.EAA55820@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
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 <shin@nd.net.fujitsu.co.jp>
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 <shin@nd.net.fujitsu.co.jp> 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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200003191200.EAA55820>