From: W.C.A. Wijngaards Date: Tue, 21 May 2024 10:04:57 +0000 (+0200) Subject: - Fix for parse end of forward-zone, stub-zone and view. X-Git-Tag: release-1.21.0rc1~77 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d149e755fd0b961fe6f0710ae88e7b2fa1662310;p=thirdparty%2Funbound.git - Fix for parse end of forward-zone, stub-zone and view. --- diff --git a/doc/Changelog b/doc/Changelog index ac5c03a13..b66edae81 100644 --- a/doc/Changelog +++ b/doc/Changelog @@ -3,6 +3,7 @@ ub_ctx_set_fwd. - Fix to print a parse error when config is read with no name for a forward-zone, stub-zone or view. + - Fix for parse end of forward-zone, stub-zone and view. 17 May 2024: Yorgos - Merge #1069: Fix unbound-control stdin commands for multi-process diff --git a/util/configparser.y b/util/configparser.y index 2e82da5d7..5f42126f7 100644 --- a/util/configparser.y +++ b/util/configparser.y @@ -357,7 +357,7 @@ stubstart: VAR_STUB_ZONE } } ; -contents_stub: contents_stub content_stub +contents_stub: content_stub contents_stub | { /* stub end */ @@ -382,7 +382,7 @@ forwardstart: VAR_FORWARD_ZONE } } ; -contents_forward: contents_forward content_forward +contents_forward: content_forward contents_forward | { /* forward end */ @@ -407,7 +407,7 @@ viewstart: VAR_VIEW } } ; -contents_view: contents_view content_view +contents_view: content_view contents_view | { /* view end */