From: Michael Tremer Date: Wed, 28 Mar 2018 15:39:35 +0000 (+0100) Subject: unbound: Fix crash on startup X-Git-Tag: v2.19-core120~14 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=9f0999325dec7ffbcf8b18b846fbf6a8a6c5780f;p=ipfire-2.x.git unbound: Fix crash on startup Zone names should not be terminated with a dot. Fixes: #11689 Reported-by: Pontus Larsson Signed-off-by: Michael Tremer --- diff --git a/src/initscripts/system/unbound b/src/initscripts/system/unbound index dcb9653ee1..9b6d322079 100644 --- a/src/initscripts/system/unbound +++ b/src/initscripts/system/unbound @@ -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 ;;