Re: [reSIProcate] /etc/hosts is ignored
- From: Dmitry Semyonov <dsemyonov@xxxxxxx>
- Date: Wed, 28 Jun 2006 21:13:10 +0400 (MSD)
On Wed, 28 Jun 2006 at 20:52 +0400, Dmitry Semyonov wrote:
> Finally, I decided to use ares_local_query() for my needs. See the
> patch below for reference. Hope it will save some time to others.
Sorry, ares_destroy.c patch should have looked as follows:
Index: ares_destroy.c
===================================================================
--- ares_destroy.c (revision 6386)
+++ ares_destroy.c (working copy)
@@ -16,6 +16,7 @@
#include <stdlib.h>
#include "ares.h"
+#include "ares_local.h"
#include "ares_private.h"
@@ -56,4 +57,6 @@
free(query);
}
free(channel);
+
+ ares_local_destroy();
}
--
...Bye..Dmitry.