From b0f477df875a39146a69f1ab622bfb87a760c028 Mon Sep 17 00:00:00 2001 From: Mark Andrews Date: Tue, 3 Nov 2020 11:25:55 +1100 Subject: [PATCH] Call nta_detach() before dns_view_weakdetach() so view is available. (cherry picked from commit ea956976d1e89f49570a4690fbad377e4f607c77) --- lib/dns/nta.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/dns/nta.c b/lib/dns/nta.c index a6f56b1498..ff8f23046d 100644 --- a/lib/dns/nta.c +++ b/lib/dns/nta.c @@ -270,8 +270,8 @@ checkbogus(isc_task_t *task, isc_event_t *event) { NULL, 0, DNS_FETCHOPT_NONTA, 0, NULL, task, fetch_done, nta, &nta->rdataset, &nta->sigrdataset, &nta->fetch); if (result != ISC_R_SUCCESS) { - dns_view_weakdetach(&view); nta_detach(view->mctx, &nta); + dns_view_weakdetach(&view); } }