bind9/bin
Aram Sargsyan 78f1d256a3 Fix view's zones reverting bug during reconfiguration
During reconfiguration, the configure_view() function reverts the
configured zones to the previous view in case if there is an error.

It uses the 'zones_configured' boolean variable to decide whether
it is required to revert the zones, i.e. the error happened after
all the zones were successfully configured.

The problem is that it does not account for the case when an error
happens during the configuration of one of the zones (not the first),
in which case there are zones that are already configured for the
new view (and they need to be reverted), and there are zones that
are not (starting from the failed one).

Since 'zones_configured' remains 'false', the configured zones are
not reverted.

Replace the 'zones_configured' variable with a pointer to the latest
successfully configured zone configuration element, and when reverting,
revert up to and including that zone.

(cherry picked from commit 84c235a4b0)
2023-03-01 15:40:33 +00:00
..
check Fix the reference to RFC 1035 in named-compilezone(1) 2023-02-13 16:33:38 +00:00
confgen Update sources to Clang 15 formatting 2022-11-29 09:14:07 +01:00
delv Update sources to Clang 15 formatting 2022-11-29 09:14:07 +01:00
dig Cleanup OpenSSL reference on bad option 2023-02-16 22:31:52 +00:00
dnssec dnssec-checkds: cleanup memory on error paths 2023-02-09 09:00:28 +11:00
named Fix view's zones reverting bug during reconfiguration 2023-03-01 15:40:33 +00:00
nsupdate Handle address lookup failure more gracefully 2023-02-01 00:36:42 +11:00
plugins Implement incremental hash table resizing in isc_ht 2023-01-11 17:15:33 +01:00
rndc Update sources to Clang 15 formatting 2022-11-29 09:14:07 +01:00
tests Add a catz system test check for [GL #3911] 2023-03-01 15:39:39 +00:00
tools named-rrchecker: have fatal cleanup 2023-02-07 11:15:21 +11:00
Makefile.am Remove native PKCS#11 support 2021-09-09 15:35:39 +02:00