]> git.ipfire.org Git - thirdparty/bind9.git/commit
Don't use dns_zone_attach() in zone_refreshkeys()
authorOndřej Surý <ondrej@isc.org>
Thu, 3 Nov 2022 11:08:35 +0000 (12:08 +0100)
committerOndřej Surý <ondrej@isc.org>
Thu, 3 Nov 2022 13:29:32 +0000 (14:29 +0100)
commit80e66fbd2d8a6dc581387116288f5d5c5cbcb0f6
tree43c649c892252b7209e1f5155a46dc008d38da7f
parentbb3852d71e5ad44811b4df054cec366dec12bd85
Don't use dns_zone_attach() in zone_refreshkeys()

The zone_refreshkeys() could run before the zone_shutdown(), but after
the last .erefs has been "detached" causing assertion failure when doing
dns_zone_attach().  Remove the use of .erefs (dns_zone_attach/detach)
and replace it with using the .irefs and additional checks whether the
zone is exiting in the callbacks.
lib/dns/zone.c