aboutsummaryrefslogtreecommitdiff
path: root/ares/nameser.h
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2004-07-24 21:47:49 +0000
committerDaniel Stenberg <daniel@haxx.se>2004-07-24 21:47:49 +0000
commitb3b2ba31f7f666f31e187db9c223062553966566 (patch)
tree6acdfb45246bcf76087412ae8cbdd4cf31dd3e17 /ares/nameser.h
parent7f78bc3c6d167760a41a5183d21b3ecfe2718a7c (diff)
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.
Diffstat (limited to 'ares/nameser.h')
-rw-r--r--ares/nameser.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/ares/nameser.h b/ares/nameser.h
index 77c76bf48..d3a95e8cc 100644
--- a/ares/nameser.h
+++ b/ares/nameser.h
@@ -26,6 +26,9 @@ struct iovec
#define getpid() _getpid()
+int ares_writev (SOCKET s, const struct iovec *vector, size_t count);
+#define writev(s,vect,count) ares_writev(s,vect,count)
+
struct timezone { int dummy; };
int ares_gettimeofday(struct timeval *tv, struct timezone *tz);