]> git.ipfire.org Git - thirdparty/bind9.git/commit
Fix shutdown races in catzs
authorAram Sargsyan <aram@isc.org>
Fri, 20 Oct 2023 10:45:35 +0000 (10:45 +0000)
committerArаm Sаrgsyаn <aram@isc.org>
Mon, 23 Oct 2023 08:21:39 +0000 (08:21 +0000)
commit4eb4fa288cfdfed30cd3d930874f73970f1ca5c0
treeb227f6185e9f8b414cc15488781dec11bef681c1
parentcddd9dcb5329165633767fd1e319fbb0700487d2
Fix shutdown races in catzs

The dns__catz_update_cb() does not expect that 'catzs->zones'
can become NULL during shutdown.

Add similar checks in the dns__catz_update_cb() and dns_catz_zone_get()
functions to protect from such a case. Also add an INSIST in the
dns_catz_zone_add() function to explicitly state that such a case
is not expected there, because that function is called only during a
reconfiguration.
lib/dns/catz.c
lib/dns/include/dns/catz.h