From b669e17544c0ff64d120b8a0df2677c59ccea8fd Mon Sep 17 00:00:00 2001 From: "Steinar H. Gunderson" Date: Fri, 28 Sep 2007 14:28:14 +0000 Subject: Three fixes in one commit (sorry): a) Take care of the tcpbuf if it ends while queued for transmission, note broken servers and close them in the main loop, and store TCP socket generation number in order not to send the same query twice over the same socket. --- ares_destroy.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ares_destroy.c') diff --git a/ares_destroy.c b/ares_destroy.c index 8d9bdbc..e844ea6 100644 --- a/ares_destroy.c +++ b/ares_destroy.c @@ -65,8 +65,8 @@ void ares_destroy(ares_channel channel) query->callback(query->arg, ARES_EDESTRUCTION, NULL, 0); if (query->tcpbuf) free(query->tcpbuf); - if (query->skip_server) - free(query->skip_server); + if (query->server_info) + free(query->server_info); free(query); } -- cgit v1.2.3