]> 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)
committerAram Sargsyan <aram@isc.org>
Tue, 28 Feb 2023 14:40:17 +0000 (14:40 +0000)
commitfff49a2ffbdbd9ffc36c9f6904cb78f99735ff7f
treef5ca53d2bb2ec6b15b22a5210eddc8c9f776bedd
parent79ee7353ad5eda781c4f9d2297ddff32682731d6
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 cf79692a662b627d2230fbf7ae67f55cf729180c)
lib/dns/catz.c