]> 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)
committerArаm Sаrgsyаn <aram@isc.org>
Mon, 27 Feb 2023 10:06:32 +0000 (10:06 +0000)
commited268b46f11706bde3da68bd2a4b45752350f736
tree5c56aa5a10c50e8720e5fe5ad2f596c329a2b3ac
parenta73b67456e8ed70040fd3dd0bda1d97210bb9536
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().
lib/dns/zone.c