]> git.ipfire.org Git - thirdparty/bind9.git/commit
Fix catalog zone reconfiguration crash
authorAram Sargsyan <aram@isc.org>
Mon, 11 Oct 2021 18:13:39 +0000 (18:13 +0000)
committerAram Sargsyan <aram@isc.org>
Wed, 1 Dec 2021 09:56:59 +0000 (09:56 +0000)
commit4b362a82ebf511d0915585bbe55bdb9b989f439a
tree43c9bb33007d0c7a633e2bb7dfcfa08a1ea943cb
parentf70a43d8d3a8df9740b842c6c19961e66f08679a
Fix catalog zone reconfiguration crash

The following scenario triggers a "named" crash:

1. Configure a catalog zone.
2. Start "named".
3. Comment out the "catalog-zone" clause.
4. Run `rndc reconfig`.
5. Uncomment the "catalog-zone" clause.
6. Run `rndc reconfig` again.

Implement the required cleanup of the in-memory catalog zone during
the first `rndc reconfig`, so that the second `rndc reconfig` could
find it in an expected state.

(cherry picked from commit 43ac2cd229813c04438e027c42c0b93b9661adda)
bin/named/server.c
lib/dns/include/dns/zone.h
lib/dns/win32/libdns.def.in
lib/dns/zone.c