]> git.ipfire.org Git - thirdparty/bind9.git/commit
preserve cache when reload fails
authorColin Vidal <colin@isc.org>
Tue, 16 Sep 2025 15:14:33 +0000 (17:14 +0200)
committerColin Vidal <colin@isc.org>
Wed, 17 Sep 2025 14:45:51 +0000 (16:45 +0200)
commita1703fa35b1ad3e2be1ff961122b5fdc39654b5e
treedbb4888dc5d2f59f32d935eb53cb7c12e83a422f
parent714693742e9361c4ad9397debae530070a4b1cd2
preserve cache when reload fails

If the server is reloaded, new views are created and preexisting cache
is attached to those _but_ something goes wrong later, the previous
views are restored but the previous cache list is destroyed. This makes
the subsequent reload to drop the existing cache. This fixes it by
avoiding a mutation of the old cache list.
bin/named/server.c