From 79d480e1e7c7dcc9e2f2301fc43bacccfb096db6 Mon Sep 17 00:00:00 2001
From: Daniel Stenberg <daniel@haxx.se>
Date: Sat, 24 Jul 2004 21:51:43 +0000
Subject: [PATCH] --enable-debug builds static only, Gisle fixed a memory leak
 and more

---
 ares/CHANGES | 17 +++++++++++++++++
 1 file changed, 17 insertions(+)

diff --git a/ares/CHANGES b/ares/CHANGES
index 3380307c04..e441132361 100644
--- a/ares/CHANGES
+++ b/ares/CHANGES
@@ -1,5 +1,22 @@
   Changelog for the c-ares project
 
+* July 24
+
+- Made the lib get built static only if --enable-debug is used.
+
+- Gisle Vanem fixed:
+
+  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.
+
 * July 20
 - Fixed a few variable return types for some system calls. Made configure
   check for ssize_t to make it possible to use that when receiving the send()
-- 
GitLab