]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
2097. [bug] named could reference a destroyed memory context
authorMark Andrews <marka@isc.org>
Wed, 18 Oct 2006 04:24:19 +0000 (04:24 +0000)
committerMark Andrews <marka@isc.org>
Wed, 18 Oct 2006 04:24:19 +0000 (04:24 +0000)
                        after being reloaded / reconfigured. [RT #16428]

CHANGES
lib/dns/resolver.c

diff --git a/CHANGES b/CHANGES
index 9a7eb416b92065510399a79e407829c972e271f5..c89270ec442a9eb159011dc08bbdc90d85ce8e77 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -1,3 +1,6 @@
+2097.  [bug]           named could reference a destroyed memory context
+                       after being reloaded / reconfigured. [RT #16428]
+
 2096.  [bug]           libbind: handle applications that fail to detect
                        res_init() failures better.
 
index 628736852aace401d977e33844a81bdcbc71c2bc..c776b6562743e9f33816f91105f0d1ee6c965001 100644 (file)
@@ -15,7 +15,7 @@
  * PERFORMANCE OF THIS SOFTWARE.
  */
 
-/* $Id: resolver.c,v 1.284.18.51 2006/08/31 03:57:05 marka Exp $ */
+/* $Id: resolver.c,v 1.284.18.52 2006/10/18 04:24:19 marka Exp $ */
 
 /*! \file */
 
@@ -2844,8 +2844,7 @@ fctx_join(fetchctx_t *fctx, isc_task_t *task, isc_sockaddr_t *client,
        clone = NULL;
        isc_task_attach(task, &clone);
        event = (dns_fetchevent_t *)
-               isc_event_allocate(fctx->res->buckets[fctx->bucketnum].mctx,
-                                  clone, DNS_EVENT_FETCHDONE,
+               isc_event_allocate(fctx->res->mctx, clone, DNS_EVENT_FETCHDONE,
                                   action, arg, sizeof(*event));
        if (event == NULL) {
                isc_task_detach(&clone);