]> git.ipfire.org Git - thirdparty/bind9.git/commit
don't overwrite the dns_master_loadfile() result before calling zone_postload()
authorEvan Hunt <each@isc.org>
Wed, 26 Jun 2019 00:53:32 +0000 (17:53 -0700)
committerEvan Hunt <each@isc.org>
Wed, 26 Jun 2019 15:49:52 +0000 (08:49 -0700)
commit09fc9d4f875099b39a135e8f446c4f923e90707e
tree07ac73a48f118f089467c5d8a715ae9360d05ba5
parent9ea8ff424a8d3492ebb46b7bd9725b80aca1ba35
don't overwrite the dns_master_loadfile() result before calling zone_postload()

if "rndc reload" fails, the result code is supposed to be passed to
zone_postload, but for inline-signing zones, the result can be
overwritten first by a call to the ZONE_TRYLOCK macro. this can lead
to the partially-loaded unsigned zone being synced over to the signed
zone instead of being rejected.

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