unbound: Fix crash on startup

Zone names should not be terminated with a dot.

Fixes: #11689

Reported-by: Pontus Larsson <pontuslarsson51@yahoo.se>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
This commit is contained in:
Michael Tremer
2018-03-28 16:39:35 +01:00
parent d97f43b309
commit 9f0999325d

View File

@@ -214,16 +214,16 @@ write_forward_conf() {
case "${zone}" in
*.in-addr.arpa)
echo "stub-zone:"
echo " name: ${zone}."
echo " name: ${zone}"
echo " stub-addr: ${server}"
echo
echo "server:"
echo " local-zone: \"${zone}.\" transparent"
echo " local-zone: \"${zone}\" transparent"
echo
;;
*)
echo "forward-zone:"
echo " name: ${zone}."
echo " name: ${zone}"
echo " forward-addr: ${server}"
echo
;;