Commit a473029e authored by Mark Andrews's avatar Mark Andrews
Browse files

2097. [bug] named could reference a destroyed memory context

                        after being reloaded / reconfigured. [RT #16428]
parent 00ca39da
2097. [bug] named could reference a destroyed memory context
after being reloaded / reconfigured. [RT #16428]
2096. [bug] libbind: handle applications that fail to detect 2096. [bug] libbind: handle applications that fail to detect
res_init() failures better. res_init() failures better.
......
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
* PERFORMANCE OF THIS SOFTWARE. * PERFORMANCE OF THIS SOFTWARE.
*/ */
/* $Id: resolver.c,v 1.335 2006/08/31 03:56:36 marka Exp $ */ /* $Id: resolver.c,v 1.336 2006/10/18 04:18:54 marka Exp $ */
/*! \file */ /*! \file */
...@@ -2844,8 +2844,7 @@ fctx_join(fetchctx_t *fctx, isc_task_t *task, isc_sockaddr_t *client, ...@@ -2844,8 +2844,7 @@ fctx_join(fetchctx_t *fctx, isc_task_t *task, isc_sockaddr_t *client,
clone = NULL; clone = NULL;
isc_task_attach(task, &clone); isc_task_attach(task, &clone);
event = (dns_fetchevent_t *) event = (dns_fetchevent_t *)
isc_event_allocate(fctx->res->buckets[fctx->bucketnum].mctx, isc_event_allocate(fctx->res->mctx, clone, DNS_EVENT_FETCHDONE,
clone, DNS_EVENT_FETCHDONE,
action, arg, sizeof(*event)); action, arg, sizeof(*event));
if (event == NULL) { if (event == NULL) {
isc_task_detach(&clone); isc_task_detach(&clone);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment