mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-29 13:38:26 +00: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.
This commit is contained in:
parent
0ef0c86632
commit
cf79692a66
@ -2106,6 +2106,8 @@ dns_catz_dbupdate_callback(dns_db_t *db, void *fn_arg) {
|
|||||||
if (catz->dbversion != NULL) {
|
if (catz->dbversion != NULL) {
|
||||||
dns_db_closeversion(catz->db, &catz->dbversion, false);
|
dns_db_closeversion(catz->db, &catz->dbversion, false);
|
||||||
}
|
}
|
||||||
|
dns_db_updatenotify_unregister(
|
||||||
|
catz->db, dns_catz_dbupdate_callback, catz->catzs);
|
||||||
dns_db_detach(&catz->db);
|
dns_db_detach(&catz->db);
|
||||||
/*
|
/*
|
||||||
* We're not registering db update callback, it will be
|
* We're not registering db update callback, it will be
|
||||||
|
Loading…
x
Reference in New Issue
Block a user