From 86c3cd20dd2aff4b1c52ce13d8587abd8d2bd16c Mon Sep 17 00:00:00 2001 From: Brian Wellington Date: Wed, 20 Dec 2000 20:42:08 +0000 Subject: [PATCH] fix a race condition. --- lib/dns/lookup.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/dns/lookup.c b/lib/dns/lookup.c index 80846391b0..acb6aed587 100644 --- a/lib/dns/lookup.c +++ b/lib/dns/lookup.c @@ -15,7 +15,7 @@ * WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -/* $Id: lookup.c,v 1.6 2000/12/20 03:38:42 bwelling Exp $ */ +/* $Id: lookup.c,v 1.7 2000/12/20 20:42:08 bwelling Exp $ */ #include @@ -311,12 +311,12 @@ lookup_find(dns_lookup_t *lookup, dns_fetchevent_t *event) { send_event = ISC_TRUE; } - done: if (dns_rdataset_isassociated(&lookup->rdataset)) dns_rdataset_disassociate(&lookup->rdataset); if (dns_rdataset_isassociated(&lookup->sigrdataset)) dns_rdataset_disassociate(&lookup->sigrdataset); + done: if (event != NULL) { if (event->node != NULL) dns_db_detachnode(event->db, &event->node);