]> 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:52:50 +0000 (11:52 -0300)
commitd89a8bf696e63249994dcd1e631ff85873ce9a1d
tree9cd9084c33e0b02d66ec58331ea4d1fd5fd052c9
parent87717f4006bf95f030a690f4ed339fe7b2bffd96
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