bionic/libc/netbsd/resolv
Jim Huang 87043f9c89 res_send: Avoid spurious close()s and (rare) failure
When looping over the current list of sockets we are connected to,
use getpeername() not getsockname() to find out who the remote
end is.  This change avoids spurious close() and (rare) failure.

Origin: ISC bug #18625 and fixed in libbind 6.0

Change-Id: I5e85f9ff4b98c237978e4bf4bd85ba0a90d768e6
2012-01-14 11:30:00 +08:00
..
__dn_comp.c auto import from //depot/cupcake/@135843 2009-03-03 19:28:35 -08:00
__res_close.c auto import from //depot/cupcake/@135843 2009-03-03 19:28:35 -08:00
__res_send.c auto import from //depot/cupcake/@135843 2009-03-03 19:28:35 -08:00
herror.c auto import from //depot/cupcake/@135843 2009-03-03 19:28:35 -08:00
res_cache.c Add some logging of dns cache operations 2011-09-02 07:44:36 -07:00
res_comp.c Make the DNS resolver accept domain names with an underscore. 2009-07-27 19:19:29 +02:00
res_compat.c auto import from //depot/cupcake/@135843 2009-03-03 19:28:35 -08:00
res_data.c resolv: make internal symbols static/hidden 2010-10-15 02:10:29 +08:00
res_debug.c Add some missing includes. 2011-03-21 20:01:03 -07:00
res_debug.h auto import from //depot/cupcake/@135843 2009-03-03 19:28:35 -08:00
res_init.c libc: Fix leak in the DNS thread-specific state. 2011-05-18 13:48:20 +02:00
res_mkquery.c auto import from //depot/cupcake/@135843 2009-03-03 19:28:35 -08:00
res_private.h auto import from //depot/cupcake/@135843 2009-03-03 19:28:35 -08:00
res_query.c auto import from //depot/cupcake/@135843 2009-03-03 19:28:35 -08:00
res_random.c auto import from //depot/cupcake/@135843 2009-03-03 19:28:35 -08:00
res_send.c res_send: Avoid spurious close()s and (rare) failure 2012-01-14 11:30:00 +08:00
res_state.c Add per-interface dns caches. 2011-07-26 12:59:50 -07:00