]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Call nta_detach() before dns_view_weakdetach() so view is available.
authorMark Andrews <marka@isc.org>
Tue, 3 Nov 2020 00:25:55 +0000 (11:25 +1100)
committerMark Andrews <marka@isc.org>
Tue, 3 Nov 2020 12:49:24 +0000 (23:49 +1100)
(cherry picked from commit ea956976d1e89f49570a4690fbad377e4f607c77)

lib/dns/nta.c

index a6f56b1498ba61f1ef291e9f5d217cf5fbfe2d39..ff8f23046dc1e9c7df3bca4ab1fb91eac7ab1291 100644 (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);
        }
 }