]> git.ipfire.org Git - thirdparty/bind9.git/commit
Fix dangling references to outdated views after reconfig
authorDiego Fronza <diego@isc.org>
Thu, 11 Feb 2021 14:32:20 +0000 (11:32 -0300)
committerDiego Fronza <diego@isc.org>
Mon, 15 Feb 2021 14:15:20 +0000 (11:15 -0300)
commit30729c7013d0ea2f7eac85f44129df33fb28aaa3
tree1694ac4c194619a877e339c1837e769f9700c23b
parentfe6bd687d78ced3a0528020a6849fb34910179c6
Fix dangling references to outdated views after reconfig

This commit fix a leak which was happening every time an inline-signed
zone was added to the configuration, followed by a rndc reconfig.

During the reconfig process, the secure version of every inline-signed
zone was "moved" to a new view upon a reconfig and it "took the raw
version along", but only once the secure version was freed (at shutdown)
was prev_view for the raw version detached from, causing the old view to
be released as well.

This caused dangling references to be kept for the previous view, thus
keeping all resources used by that view in memory.
bin/named/server.c
bin/tests/system/views/ns2/named1.conf.in
lib/dns/zone.c