platform_bionic/libc/netbsd
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
..
inet auto import from //depot/cupcake/@135843 2009-03-03 19:28:35 -08:00
isc Remove compiler warnings when building Bionic. 2010-06-22 17:51:41 -07:00
nameser Remove compiler warnings when building Bionic. 2010-06-22 17:51:41 -07:00
net Send both A and AAAA queries if all probes fail. 2011-09-28 22:38:08 -07:00
resolv res_send: Avoid spurious close()s and (rare) failure 2012-01-14 11:30:00 +08:00
gethnamaddr.c libc: enable IPTOS_MINCOST, fixup gethostbyaddr() proto. 2011-06-02 15:28:16 -07:00