]> git.ipfire.org Git - thirdparty/bind9.git/commit
Fix a bug where tlsctx_cache could be destroyed while still in use
authorAram Sargsyan <aram@isc.org>
Thu, 27 Nov 2025 15:00:26 +0000 (15:00 +0000)
committerArаm Sаrgsyаn (GitLab job 6550802) <aram@isc.org>
Thu, 27 Nov 2025 17:53:50 +0000 (17:53 +0000)
commit7265e335201cff82ce49ebfebf001deb6ba35bf4
treec8229630c4ba0e1b5b22347bcefa05b90ac98b4d
parent208780469590e530ddd653e1478d263f0dc602da
Fix a bug where tlsctx_cache could be destroyed while still in use

When named is being reconfigured, it detaches from the old
'isc_tlsctx_cache_t' TLS context cache object and creates a
new one. This can cause an assertion failure within the
resolver when the object is destroyed while still in use,
because the resolver is using the object without getting
attached to it.

Add an attach/detach so that the 'isc_tlsctx_cache_t' doesn't
get destroyed while still being in use.

(cherry picked from commit ed7b08c0c478aa6a9a8b2061071b92333b93abaa)
lib/dns/resolver.c