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

This commit is contained in:
Mark Andrews 2020-11-03 11:25:55 +11:00
parent 1be2a83c67
commit ea956976d1

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