]> git.ipfire.org Git - thirdparty/bind9.git/commit
fix a "max-cache-size" configuration bug
authorEvan Hunt <each@isc.org>
Wed, 29 Oct 2025 01:28:35 +0000 (18:28 -0700)
committerEvan Hunt <each@isc.org>
Wed, 29 Oct 2025 18:28:12 +0000 (18:28 +0000)
commitcd921cc7ef97404de941c9ac2f9fc14d63b75ef1
tree648415e93b07480387e612ad551e4fc01d77e1a1
parent655f2452a3261cd61e180e3e2368120aa6bab37a
fix a "max-cache-size" configuration bug

"max-cache-size default;" is allowed, according to the documentation
and the parser, but when it's configured, named crashes due to an
INSIST that the only legal string value is "unlimited". this has
been fied.

the configuration has also been simplified. previously, we checked for
max-cache-size in view and options, then determined whether to look in
the global default options based on whether the view had recursion set.
the default value set there was only applicable to views with recursion.
now, the default is an explicit "default", which affects views with
and without recursion in different ways.

the cfg type for "max-cache-size" has been changed from
cfg_type_sizeorpercent to cfg_type_maxcachesize.
bin/named/config.c
bin/named/server.c
lib/isccfg/namedconf.c