]> git.ipfire.org Git - thirdparty/bind9.git/commit
Process db callbacks in zone_loaddone() after zone_postload()
authorAram Sargsyan <aram@isc.org>
Thu, 26 Jan 2023 19:08:19 +0000 (19:08 +0000)
committerAram Sargsyan <aram@isc.org>
Tue, 28 Feb 2023 14:40:17 +0000 (14:40 +0000)
commit1254f37584497eac05ed39a5ae01cc0d22d6ea7b
treed5520a6a8492e106d622906dc77eec6335714712
parent561289909b8f7d99044bd41bcb36f83c06f33850
Process db callbacks in zone_loaddone() after zone_postload()

The zone_postload() function can fail and unregister the callbacks.

Call dns_db_endload() only after calling zone_postload() to make
sure that the registered update-notify callbacks are not called
when the zone loading has failed during zone_postload().

Also, don't ignore the return value of zone_postload().

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