]> git.ipfire.org Git - thirdparty/bind9.git/commit
catz: unregister the db update-notify callback before detaching from db
authorAram Sargsyan <aram@isc.org>
Fri, 27 Jan 2023 08:47:52 +0000 (08:47 +0000)
committerArаm Sаrgsyаn <aram@isc.org>
Mon, 27 Feb 2023 10:06:32 +0000 (10:06 +0000)
commitcf79692a662b627d2230fbf7ae67f55cf729180c
tree20f584d5c51ec95947b2c6a0596dbf92120d3c19
parent0ef0c86632c838c3f342fe1c6d8cdef1b327cde6
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.
lib/dns/catz.c