]> 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>
Tue, 28 Feb 2023 13:47:18 +0000 (13:47 +0000)
commite9acfbd43a2aec3b9cef2e8c52bb3ad7885b7526
treedbb000fb5cb271c67f4efa9ba780c094abc8e504
parent00569f62b30fd68d8fae69507a731ef998949fd8
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