Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 21 Nov 1996 18:11:00 -0800 (PST)
From:      Bill Fenner <fenner>
To:        jacs@gnome.co.uk, pst
Cc:        stable
Subject:   Re: WARNING gethostbydns brocken ?
Message-ID:  <199611220211.SAA06023@freefall.freebsd.org>

next 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



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