From 92aa963de41cf7ce6c9fe9fdbd5f4512b1af813b 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 611dae185..80e06ec8e 100644 --- a/lib/config/config_parser.yy +++ b/lib/config/config_parser.yy @@ -498,6 +498,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));