diff options
author | Steinar H. Gunderson <sesse@google.com> | 2007-09-28 14:28:14 +0000 |
---|---|---|
committer | Steinar H. Gunderson <sesse@google.com> | 2007-09-28 14:28:14 +0000 |
commit | b669e17544c0ff64d120b8a0df2677c59ccea8fd (patch) | |
tree | 7c2fb632dc14992a0528fd0649104acd9d2ddeed /ares_destroy.c | |
parent | a6a159dcad51c729e7601eee75c82ffc7045e4bb (diff) | |
download | c-ares-b669e17544c0ff64d120b8a0df2677c59ccea8fd.tar.gz c-ares-b669e17544c0ff64d120b8a0df2677c59ccea8fd.tar.bz2 c-ares-b669e17544c0ff64d120b8a0df2677c59ccea8fd.zip |
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.
Diffstat (limited to 'ares_destroy.c')
-rw-r--r-- | ares_destroy.c | 4 |
1 files changed, 2 insertions, 2 deletions
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); } |