From: Ondrej Zajicek Date: Tue, 6 May 2025 12:50:53 +0000 (+0200) Subject: Conf: Fix invalid check in text_or_ipa grammar X-Git-Tag: v2.17.2~2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=8f5b21964ece066d15794cf9d17be5b3906fe596;p=thirdparty%2Fbird.git Conf: Fix invalid check in text_or_ipa grammar Can cause crash when a bad expression is used. --- diff --git a/conf/confbase.Y b/conf/confbase.Y index af64e3ff9..857689707 100644 --- a/conf/confbase.Y +++ b/conf/confbase.Y @@ -426,8 +426,8 @@ text_or_ipa: } | '(' term ')' { $$ = cf_eval($2, T_VOID); - if (($$.type != T_BYTESTRING) && ($$.type != T_STRING)) - cf_error("Bytestring or string value expected"); + if (($$.type != T_STRING) && ($$.type != T_IP)) + cf_error("String or IP value expected"); } ;