Call nta_detach() before dns_view_weakdetach() so view is available.

(cherry picked from commit ea956976d1)
This commit is contained in:
Mark Andrews
2020-11-03 11:25:55 +11:00
parent 711d954789
commit b0f477df87

View File

@@ -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);
}
}