mirror of
https://github.com/isc-projects/bind9.git
synced 2026-02-27 12:02:10 -05:00
catz: unregister the db update-notify callback before detaching from db
When detaching from the previous version of the database, make sure
that the update-notify callback is unregistered, otherwise there is
an INSIST check which can generate an assertion failure in free_rbtdb(),
which checks that there are no outstanding update listeners in the list.
There is a similar code already in place for RPZ.
(cherry picked from commit cf79692a66)
This commit is contained in:
parent
79ee7353ad
commit
fff49a2ffb
1 changed files with 2 additions and 0 deletions
|
|
@ -1763,6 +1763,8 @@ dns_catz_dbupdate_callback(dns_db_t *db, void *fn_arg) {
|
|||
if (zone->dbversion != NULL) {
|
||||
dns_db_closeversion(zone->db, &zone->dbversion, false);
|
||||
}
|
||||
dns_db_updatenotify_unregister(
|
||||
zone->db, dns_catz_dbupdate_callback, zone->catzs);
|
||||
dns_db_detach(&zone->db);
|
||||
/*
|
||||
* We're not registering db update callback, it will be
|
||||
|
|
|
|||
Loading…
Reference in a new issue