diff --git a/lib/dns/rpz.c b/lib/dns/rpz.c index 391ea070d9..b31ee6fd17 100644 --- a/lib/dns/rpz.c +++ b/lib/dns/rpz.c @@ -2162,10 +2162,7 @@ dns_rpz_detach_rpzs(dns_rpz_zones_t **rpzsp) { *rpzsp = NULL; if (isc_refcount_decrement(&rpzs->refs) == 1) { - /* - * Destroy the task first, so that nothing runs - * in the background that might race with us. - */ + isc_task_destroy(&rpzs->updater); /*