Fix optimization bug in merge_rules()

- Reset the simple member if a unique option is merged

Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
Tom Eastep 2016-12-02 14:47:03 -08:00
parent 4949569383
commit f537e3e15c
No known key found for this signature in database
GPG Key ID: 96E6B3F2423A4D10

View File

@ -1218,6 +1218,7 @@ sub merge_rules( $$$ ) {
if ( exists $fromref->{$option} ) {
push( @{$toref->{matches}}, $option ) unless exists $toref->{$option};
$toref->{$option} = $fromref->{$option};
$toref->{simple} = 0;
}
}