bind9/lib/dns/include
Aram Sargsyan fc24cfd71d Fix a race issue in dns_view_addzone()
Views use two types of reference counting - regular and weak, and
when there are no more regular references, the view_flushanddetach()
function destroys or detaches some parts of the view, including
'view->zonetable', while other parts are freed by destroy() when
the last weak reference is detached. Since catalog zones use weak
references to attach a view, it's currently possible that during
shutdown catalog zone processing will try to add a new zone into
an otherwise unused view (because it's shutting down) which doesn't
have an attached zonetable any more. This could cause an assertion
failure. Fix this issue by modifying the dns_view_addzone() function
to expect that 'view->zonetable' can be NULL, and in that case just
return ISC_R_SHUTTINGDOWN.
2025-02-17 17:21:38 +00:00
..
dns Fix a race issue in dns_view_addzone() 2025-02-17 17:21:38 +00:00
dst Optimize selecting the signing key 2024-02-01 21:47:29 +01:00
.clang-format Add separate .clang-format files for headers 2020-02-14 09:31:05 +01:00