From 51d0e71a008b52ef76a0a183d228f86a1624270c Mon Sep 17 00:00:00 2001 From: Michael Friedrich Date: Thu, 16 Jul 2015 13:55:53 +0200 Subject: [PATCH] Don't allow "ignore where" for groups when there's no "assign where" fixes #9554 --- lib/config/config_parser.yy | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/config/config_parser.yy b/lib/config/config_parser.yy index de353ada6..1abcb16a4 100644 --- a/lib/config/config_parser.yy +++ b/lib/config/config_parser.yy @@ -380,6 +380,8 @@ object: } else if (seen_ignore) { if (!ObjectRule::IsValidSourceType(type)) BOOST_THROW_EXCEPTION(ScriptError("object rule 'ignore' cannot be used for type '" + type + "'", DebugInfoRange(@2, @4))); + else + BOOST_THROW_EXCEPTION(ScriptError("object rule 'ignore' is missing 'assign' for type '" + type + "'", DebugInfoRange(@2, @4))); } $$ = new ObjectExpression(abstract, type, $4, filter, context->GetZone(), $5, $6, DebugInfoRange(@2, @5)); -- 2.40.0