Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 22 Nov 1996 09:55:55 GMT
From:      Chris Stenton <jacs@gnome.co.uk>
To:        Bill Fenner <fenner@freefall.freebsd.org>
Cc:        stable@freefall.freebsd.org, jacs@gnome.co.uk, pst@freefall.freebsd.org
Subject:   Re: WARNING gethostbydns broken ?
Message-ID:  <jacs-9610220955.AA0001286@hawk.gnome.co.uk>
In-Reply-To: <199611220211.SAA06023@freefall.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help


	Chris,

	Does this fix it?

	  Bill

	cvs diff: Diffing .
	Index: gethostbydns.c
	===================================================================
	RCS file: /home/ncvs/src/lib/libc/net/gethostbydns.c,v
	retrieving revision 1.4.4.5
	diff -c -r1.4.4.5 gethostbydns.c
	*** gethostbydns.c	1996/11/20 18:36:37	1.4.4.5
	--- gethostbydns.c	1996/11/22 02:09:42
	***************
	*** 392,397 ****
	--- 392,399 ----
	  		return (NULL);
	  	}
  
	+ 	host.h_length = INT32SZ;
	+ 
	  	/*
	  	 * if there aren't any dots, it could be a user-level alias.
 	 	 * this is also done in res_query() since we are not the only


Thanks Bill,


The above patch fixes all the problems.


Chris




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