]> git.ipfire.org Git - thirdparty/bind9.git/commit
ZMGR: TLS contexts cache - properly synchronise access
authorArtem Boldariev <artem@boldariev.com>
Fri, 26 May 2023 08:06:59 +0000 (11:06 +0300)
committerArtem Boldariev <artem@boldariev.com>
Fri, 26 May 2023 11:18:03 +0000 (14:18 +0300)
commit0b95cf74ffc52a714462e0e81ec70ae0856f5022
tree3e7e0a3728039d2cbe09df75a5d2f5d009ce0798
parent714d722604d39810aadce0f2c7ac9d74063a195f
ZMGR: TLS contexts cache - properly synchronise access

This commit ensures that access to the TLS context cache within zone
manager is properly synchronised.

Previously there was a possibility for it to get unexpectedly
NULLified for a brief moment by a call to
dns_zonemgr_set_tlsctx_cache() from one thread, while being accessed
from another (e.g. from got_transfer_quota()). This behaviour could
lead to server abort()ing on configuration reload (under very rare
circumstances).

That behaviour has been fixed.
lib/dns/zone.c