]> git.ipfire.org Git - thirdparty/bind9.git/commit
Check that catz member zone is not a configured forward zone
authorAram Sargsyan <aram@isc.org>
Tue, 3 May 2022 22:24:32 +0000 (22:24 +0000)
committerAram Sargsyan <aram@isc.org>
Thu, 9 Jun 2022 10:45:10 +0000 (10:45 +0000)
commit2aff264fb121e86df4063cd151b83ad0fa1f6aa2
treed111d3a44e50f69bf0930c25d640ef110b83182c
parent5712f97c247034010b8f2a7fc7cfe9826475064f
Check that catz member zone is not a configured forward zone

When processing a catalog zone member zone make sure that there is no
configured pre-existing forward zone with that name.

Refactor the `dns_fwdtable_find()` function to not alter the
`DNS_R_PARTIALMATCH` result (coming from `dns_rbt_findname()`) into
`DNS_R_SUCCESS`, so that now the caller can differentiate partial
and exact matches. Patch the calling sites to expect and process
the new return value.
bin/named/server.c
lib/dns/forward.c
lib/dns/include/dns/forward.h
lib/dns/resolver.c