From f5d5b8ccd7481f2d97636a72e5033fdfd69b595c Mon Sep 17 00:00:00 2001 From: Ondrej Zajicek Date: Tue, 6 May 2025 14:50:53 +0200 Subject: [PATCH] Conf: Fix invalid check in text_or_ipa grammar Can cause crash when a bad expression is used. --- conf/confbase.Y | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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"); } ; -- 2.47.2