[9.20] fix: usr: Fix crash on badly configured secondary signer

A badly configured secondary signer that was missing the 'file' entry caused the server to crash, rather than to reject the configuration. This has been fixed.

Closes #5993

Backport of MR !12045

Merge branch 'backport-5993-fix-bump-in-the-wire-crash-9.20' into 'bind-9.20'

See merge request isc-projects/bind9!12112
This commit is contained in:
Matthijs Mekking 2026-05-27 14:01:27 +00:00
commit edc1ef084f
2 changed files with 11 additions and 0 deletions

View file

@ -0,0 +1,8 @@
remote-servers "stealthPrimaries" {127.0.0.1;};
zone "example.net" {
type secondary;
dnssec-policy default;
inline-signing yes;
primaries { stealthPrimaries; };
};

View file

@ -297,6 +297,9 @@ l=$(grep "missing 'file' entry" <checkconf.out$n.2 | wc -l)
$CHECKCONF inline-bad.conf >checkconf.out$n.3 2>&1 && ret=1
l=$(grep "missing 'file' entry" <checkconf.out$n.3 | wc -l)
[ $l -eq 1 ] || ret=1
$CHECKCONF inline-inherit.conf >checkconf.out$n.3 2>&1 && ret=1
l=$(grep "missing 'file' entry" <checkconf.out$n.3 | wc -l)
[ $l -eq 1 ] || ret=1
if [ $ret -ne 0 ]; then echo_i "failed"; fi
status=$((status + ret))