mirror of
https://github.com/isc-projects/bind9.git
synced 2026-05-28 04:34:54 -04:00
[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:
commit
edc1ef084f
2 changed files with 11 additions and 0 deletions
8
bin/tests/system/checkconf/inline-inherit.conf
Normal file
8
bin/tests/system/checkconf/inline-inherit.conf
Normal 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; };
|
||||
};
|
||||
|
||||
|
|
@ -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))
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue