]> git.ipfire.org Git - thirdparty/bind9.git/commit
Prepare a zone for shutting down when deleting it from a view
authorAram Sargsyan <aram@isc.org>
Mon, 12 May 2025 13:58:38 +0000 (13:58 +0000)
committerOndřej Surý <ondrej@isc.org>
Wed, 28 May 2025 16:59:05 +0000 (16:59 +0000)
commit874ca5ca2f1f381e434304e262ea08e77e3bdf65
tree872ac57bba84c1b97dd08c0e54a97dffcba3f40e
parent610825ebc14bbe6931d3607bed202606d2032dd6
Prepare a zone for shutting down when deleting it from a view

After b171cacf4f0123ba96bef6eedfc92dfb608db6b7, a zone object can
remain in the memory for a while, until garbage collection is run.
Setting the DNS_ZONEFLG_EXITING flag should prevent the zone
maintenance function from running while it's in that state.
Otherwise, a secondary zone could initiate a zone transfer after
it had been deleted.
lib/dns/include/dns/zone.h
lib/dns/view.c
lib/dns/zone.c