From f537e3e15cb9454e5113a22f531506dcff4f7b37 Mon Sep 17 00:00:00 2001 From: Tom Eastep Date: Fri, 2 Dec 2016 14:47:03 -0800 Subject: [PATCH] Fix optimization bug in merge_rules() - Reset the simple member if a unique option is merged Signed-off-by: Tom Eastep --- Shorewall/Perl/Shorewall/Chains.pm | 1 + 1 file changed, 1 insertion(+) diff --git a/Shorewall/Perl/Shorewall/Chains.pm b/Shorewall/Perl/Shorewall/Chains.pm index 33b4aaad5..797bd11d5 100644 --- a/Shorewall/Perl/Shorewall/Chains.pm +++ b/Shorewall/Perl/Shorewall/Chains.pm @@ -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; } }