diff --git a/lib/dns/cache.c b/lib/dns/cache.c index bb4bea3052..b2d188ffc6 100644 --- a/lib/dns/cache.c +++ b/lib/dns/cache.c @@ -963,7 +963,7 @@ cleaner_shutdown_action(isc_task_t *task, isc_event_t *event) { } /* Make sure we don't reschedule anymore. */ - (void)isc_task_purge(task, NULL, DNS_EVENT_CACHECLEAN, NULL); + (void)isc_task_purgeevent(task, cache->cleaner.resched_event); isc_refcount_decrementz(&cache->live_tasks);