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: v3.0.3~4 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f5d5b8ccd7481f2d97636a72e5033fdfd69b595c;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 86ae099c9..20e6b02aa 100644 --- a/conf/confbase.Y +++ b/conf/confbase.Y @@ -461,8 +461,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"); } ;