]> 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>
Thu, 18 Sep 2025 07:06:31 +0000 (09:06 +0200)
commita4c3e6f3dd992bc78af02f2062e7c5bdc48ec39e
tree138ce27e67feba009c29ce19f200d742348e2cc2
parent56fa811fe564f58a70767275498fc0f933d182c9
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.

(cherry picked from commit a1703fa35b1ad3e2be1ff961122b5fdc39654b5e)
bin/named/server.c