Gisle Vanem:
authorDaniel Stenberg <daniel@haxx.se>
Sat, 24 Jul 2004 21:47:49 +0000 (21:47 +0000)
committerDaniel Stenberg <daniel@haxx.se>
Sat, 24 Jul 2004 21:47:49 +0000 (21:47 +0000)
commitb3b2ba31f7f666f31e187db9c223062553966566
tree6acdfb45246bcf76087412ae8cbdd4cf31dd3e17
parent7f78bc3c6d167760a41a5183d21b3ecfe2718a7c
Gisle Vanem:

Basically in loops like handle_errors(), 'query->next' was assigned a local
variable and then query was referenced after the memory was freed by
next_server(). I've changed that so next_server() and end_query() returns the
next query. So callers should use this ret-value.

The next problem was that 'server->tcp_buffer_pos' had a random value at entry
to 1st recv() (luckily causing Winsock to return ENOBUFS).

I've also added a ares_writev() for Windows to streamline the code
a bit more.
ares/ares_process.c
ares/nameser.h
ares/setup.h
ares/windows_port.c