]> 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 14:22:50 +0000 (15:22 +0100)
commit21d8d5e07d2a6cde96f56c74efbf26d1c1348dd5
tree132795f93046f9e1d037762401d2570f6f643654
parent1a47343965367ef126191b33a2972c0eab722e86
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.

(cherry picked from commit 80e66fbd2d8a6dc581387116288f5d5c5cbcb0f6)
lib/dns/zone.c