read_udp_packets: bail out loop on bad sockets
authorGisle Vanem <gvanem@broadpark.no>
Sat, 30 Jun 2012 21:44:00 +0000 (23:44 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Sat, 30 Jun 2012 21:44:00 +0000 (23:44 +0200)
commit4d9123590069b99dbb4bb51de07316a5a571f99a
tree08d16475b59e10bca748ca4eca717be57ad4a774
parent54751f4d33e6788392ac4637865efc216dec2774
read_udp_packets: bail out loop on bad sockets

I can see that recvfrom() in ares_process.c many times is called with
'udp_socket' == ARES_SOCKET_BAD. The code takes care not to call
recv/recvfrom with ARES_SOCKET_BAD in the outer-loop. So should the
inner-loop.
ares_process.c