Mark a rule as complex if an option value is a reference.

Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
Tom Eastep 2013-04-21 14:44:30 -07:00
parent 0d39d7542e
commit 6d57e7a0ce

View File

@ -788,6 +788,7 @@ sub set_rule_option( $$$ ) {
assert( defined $value && reftype $ruleref , $value, $ruleref );
$ruleref->{simple} = 0;
$ruleref->{complex} = 1 if reftype $value;
my $opttype = $opttype{$option} || MATCH;