From ecb2897c71b2268b2f828c6b563aea06320c8ee2 Mon Sep 17 00:00:00 2001 From: Brian Wellington Date: Wed, 12 Jul 2000 23:56:06 +0000 Subject: [PATCH] Insist that when a fetch returns a successful event, the rdataset is associated. A test failed about a week ago because this was not true, and because it died in the event handler, diagnosing the problem was impossible. --- lib/dns/resolver.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/dns/resolver.c b/lib/dns/resolver.c index 94a0ed6e7b..38db487176 100644 --- a/lib/dns/resolver.c +++ b/lib/dns/resolver.c @@ -15,7 +15,7 @@ * SOFTWARE. */ -/* $Id: resolver.c,v 1.144 2000/07/07 19:43:14 tale Exp $ */ +/* $Id: resolver.c,v 1.145 2000/07/12 23:56:06 bwelling Exp $ */ #include @@ -504,6 +504,8 @@ fctx_sendevents(fetchctx_t *fctx, isc_result_t result) { event->ev_sender = fctx; if (!HAVE_ANSWER(fctx)) event->result = result; + if (result == ISC_R_SUCCESS) + INSIST(dns_rdataset_isassociated(event->rdataset)); isc_task_sendanddetach(&task, (isc_event_t **)&event); } ISC_LIST_INIT(fctx->events);