]> git.ipfire.org Git - thirdparty/bind9.git/commit
prevent a reference leak from the ns_query_done hooks
authorEvan Hunt <each@isc.org>
Wed, 22 Jan 2025 01:57:00 +0000 (17:57 -0800)
committerEvan Hunt <each@isc.org>
Tue, 25 Feb 2025 22:41:27 +0000 (22:41 +0000)
commit90989bfdfb702641b852be11c6c49b1b021cb775
tree5bf8eba1cf5da6f79391250450899900d62ec14e
parentab047ff47f3d87006215e340fa026f930eb761a8
prevent a reference leak from the ns_query_done hooks

if the NS_QUERY_DONE_BEGIN or NS_QUERY_DONE_SEND hook is
used in a plugin and returns NS_HOOK_RETURN, some of the
cleanup in ns_query_done() can be skipped over, leading
to reference leaks that can cause named to hang on shut
down.

this has been addressed by adding more housekeeping
code after the cleanup: tag in ns_query_done().

(cherry picked from commit c2e43582678ec5d0c40e19c671d60012b36ac312)
lib/ns/include/ns/query.h
lib/ns/query.c