1
0
mirror of https://github.com/fwbuilder/fwbuilder synced 2026-05-10 19:14:57 +02:00

ported fix for #2617 from fortress to fwbuilder-oss; see #2617

This commit is contained in:
Vadim Kurland
2011-07-21 11:43:08 -07:00
parent 5993fd7574
commit 0132087bb4

View File

@@ -359,6 +359,11 @@ void Compiler::expandGroupsInRuleElement(RuleElement *s)
for(FWObject::iterator i2=cl.begin(); i2!=cl.end(); ++i2)
{
if (!s->validateChild(*i2))
abort(s->getParent(),
"Object '" + (*i2)->getName() +
"' can not be used in rule element " + s->getTypeName());
s->addRef( *i2 );
}
}