Ulrich Drepper b7da31a164 * resolv/res_send.c (__libc_res_nsend): Take additional parameter.
Use it instead of locally defined resplen2 variable.
	(res_nsend): Adjust for __libc_res_nsend interface change.
	(send_vc): Initialize *resplen2 if necessary.  Read length of
	package into an appropriately aligned variable.  Store converted length
	in new variable and use it appropriately.
	Add branch prediction help.
	* resolv/res_query.c (__libc_res_nquery): Take additional parameter
	and pass it on to __libc_res_nsend.  Adjust all callers.
	(__libc_res_nsearch): Likewise.
	(__libc_res_nqeurydomain): Likewise.
	* resolv/nss_dns/dns-host.c: Adjust for __libc_res_nsearch interface
	change.
	(_nss_dns_gethostbyname4): Don't unconditionally allocate tmp array.
	Define resplen2 variable and pass it to __libc_res_nsearch and then
	to gaih_getanswer.
	(getanswer_r): In case of incorrect DNS data don't overread buffer.
	Add branch prediction.
	(gaih_getanswer_slice): Likewise.  Check for invalid data types.
	(gaih_getanswer): Don't decode second slice if first one failed due
	to a too small buffer.  Don't let not found status of second
	decoder shadow results of the first.
	* resolv/gethnamaddr.c (gethostbyname2): Adjust for __libc_res_nsearch
	and __libc_res_nquery interface changes
	(gethostbyaddr): Adjust for __libc_res_nquery interface change.
	* include/resolv.h: Adjust prototypes for __libc_res_nquery,
	__libc_res_nsearch, and __libc_res_nsend.
	* resolv/nss_dns/dns-canon.c: Adjust for __libc_res_nquery interface
	change.
	* resolv/nss_dns/dns-network.c: Adjust for __libc_res_nquery and
	__libc_res_nsearch interface changes.
2008-07-28 22:55:10 +00:00
..
2004-06-30 07:43:11 +00:00
2006-01-04 07:35:13 +00:00
2002-03-18 23:38:37 +00:00
2000-12-28 15:08:51 +00:00
.
2007-07-31 13:33:18 +00:00
2004-03-16 10:10:13 +00:00
2006-02-12 21:41:44 +00:00
2001-03-30 05:34:59 +00:00
.
2007-07-31 13:33:18 +00:00
2004-03-09 10:36:53 +00:00
2004-03-09 10:36:53 +00:00
2004-07-01 17:50:47 +00:00
2001-07-06 04:58:11 +00:00
.
2007-07-31 13:33:18 +00:00
2002-12-20 09:33:33 +00:00
2007-02-02 15:29:40 +00:00
2002-09-10 01:40:26 +00:00
2002-04-09 20:36:24 +00:00
2004-03-14 21:12:06 +00:00
2004-04-13 02:15:43 +00:00
2002-08-04 09:27:27 +00:00
2002-08-03 07:02:10 +00:00
2004-10-24 21:29:41 +00:00
2002-08-10 07:54:55 +00:00
2003-06-11 21:57:23 +00:00
2003-08-31 18:10:47 +00:00
2002-08-10 07:54:55 +00:00
.
2007-07-31 13:33:18 +00:00
2000-10-01 19:15:29 +00:00
2005-02-11 10:17:19 +00:00
2005-02-11 10:17:19 +00:00
.
2007-07-31 13:33:18 +00:00
2004-10-24 21:29:41 +00:00
2001-07-06 04:58:11 +00:00
2004-03-16 10:10:13 +00:00