From b879ed05f4fb8209add6c19a509c984b6c8b3a98 Mon Sep 17 00:00:00 2001 From: Andreas Gustafsson Date: Tue, 20 Mar 2001 22:13:00 +0000 Subject: [PATCH] 785. [bug] A race condition in the resolver could cause an assertion failure. [RT #673, #872, #1048] --- CHANGES | 4 ++++ lib/dns/resolver.c | 3 ++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/CHANGES b/CHANGES index 299c70db9f..ecb37e70d8 100644 --- a/CHANGES +++ b/CHANGES @@ -1,3 +1,7 @@ + + 785. [bug] A race condition in the resolver could cause + an assertion failure. [RT #673, #872, #1048] + 784. [bug] nsupdate and other programs would not quit properly if some signals were blocked by the caller. [RT #1081] diff --git a/lib/dns/resolver.c b/lib/dns/resolver.c index 42c62019bd..578fc35130 100644 --- a/lib/dns/resolver.c +++ b/lib/dns/resolver.c @@ -15,7 +15,7 @@ * WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -/* $Id: resolver.c,v 1.212 2001/03/16 21:50:59 bwelling Exp $ */ +/* $Id: resolver.c,v 1.213 2001/03/20 22:13:00 gson Exp $ */ #include @@ -553,6 +553,7 @@ fctx_done(fetchctx_t *fctx, isc_result_t result) { LOCK(&res->buckets[fctx->bucketnum].lock); fctx->state = fetchstate_done; + fctx->attributes &= ~FCTX_ATTR_ADDRWAIT; fctx_sendevents(fctx, result); UNLOCK(&res->buckets[fctx->bucketnum].lock);