3221. [bug] Fixed a potential coredump on shutdown due to

referencing fetch context after it's been freed.
			[RT #26720]
This commit is contained in:
Evan Hunt
2011-11-23 22:53:13 +00:00
parent 79ad7e8138
commit f13b21bda2
2 changed files with 8 additions and 2 deletions
+4
View File
@@ -1,3 +1,7 @@
3221. [bug] Fixed a potential coredump on shutdown due to
referencing fetch context after it's been freed.
[RT #26720]
--- 9.8.2b1 released ---
3220. [bug] Change #3186 was incomplete; dns_db_rpz_findips()
+4 -2
View File
@@ -15,7 +15,7 @@
* PERFORMANCE OF THIS SOFTWARE.
*/
/* $Id: resolver.c,v 1.428.6.12 2011/11/15 21:45:30 each Exp $ */
/* $Id: resolver.c,v 1.428.6.13 2011/11/23 22:53:13 each Exp $ */
/*! \file */
@@ -4011,8 +4011,10 @@ validated(isc_task_t *task, isc_event_t *event) {
* so, destroy the fctx.
*/
if (SHUTTINGDOWN(fctx) && !sentresponse) {
isc_mutex_t *bucketlock =
&fctx->res->buckets[fctx->bucketnum].lock;
maybe_destroy(fctx, ISC_TRUE);
UNLOCK(&fctx->res->buckets[fctx->bucketnum].lock);
UNLOCK(bucketlock);
goto cleanup_event;
}