Commit 7c458020 authored by Tony Finch's avatar Tony Finch

Fix crash at shutdown during an RPZ reload. [RT #46210]

parent c6b43074
Pipeline #158 failed with stage
in 0 seconds
4895. [bug] named could crash when a shutdown occurred during
an RPZ reload. [RT #46210]
4894. [bug] named could crash while rolling a dnstap output file.
[RT #46942]
......
......@@ -2089,9 +2089,15 @@ rpz_detach(dns_rpz_zone_t **rpzp, dns_rpz_zones_t *rpzs) {
ISC_FALSE);
if (rpz->db)
dns_db_detach(&rpz->db);
isc_ht_destroy(&rpz->nodes);
if (rpz->updaterunning)
isc_task_purgeevent(rpz->rpzs->updater, &rpz->updateevent);
isc_timer_reset(rpz->updatetimer, isc_timertype_inactive,
NULL, NULL, ISC_TRUE);
isc_timer_detach(&rpz->updatetimer);
isc_ht_destroy(&rpz->nodes);
isc_mem_put(rpzs->mctx, rpz, sizeof(*rpz));
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment