mirror of
https://github.com/isc-projects/bind9.git
synced 2026-06-10 10:30:00 -04:00
Fix keyfromlabel test, missing status update
Fix a missing status=$((status+ret)) in the keyfromlabel system test,
which would ignore the error if ZSK key creation failed.
(cherry picked from commit 7845f51178)
This commit is contained in:
parent
25cb2704b4
commit
9f2b89fa77
1 changed files with 3 additions and 2 deletions
|
|
@ -65,13 +65,14 @@ do
|
|||
ret=0
|
||||
zsk=$(keyfromlabel $alg $zone keyfromlabel-zsk)
|
||||
test -z "$zsk" && ret=1
|
||||
test "$ret" -eq 0 || echo_i "failed (zsk=$zsk)"
|
||||
status=$((status+ret))
|
||||
|
||||
echo_i "Get KSK $alg $zone $type:$bits"
|
||||
ret=0
|
||||
ksk=$(keyfromlabel $alg $zone keyfromlabel-ksk -f KSK)
|
||||
test -z "$ksk" && ret=1
|
||||
|
||||
test "$ret" -eq 0 || echo_i "failed (zsk=$zsk ksk=$ksk)"
|
||||
test "$ret" -eq 0 || echo_i "failed (ksk=$ksk)"
|
||||
status=$((status+ret))
|
||||
|
||||
# Skip signing if dnssec-keyfromlabel failed.
|
||||
|
|
|
|||
Loading…
Reference in a new issue