From f61f5a81831fa2ed4221e9e41d992cfefba523d4 Mon Sep 17 00:00:00 2001 From: Tom Eastep Date: Tue, 22 Jan 2013 09:07:07 -0800 Subject: [PATCH] Don't copy a chain that has a single RETURN rule. Signed-off-by: Tom Eastep --- Shorewall/Perl/Shorewall/Chains.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Shorewall/Perl/Shorewall/Chains.pm b/Shorewall/Perl/Shorewall/Chains.pm index 0db721966..6001737a6 100644 --- a/Shorewall/Perl/Shorewall/Chains.pm +++ b/Shorewall/Perl/Shorewall/Chains.pm @@ -2962,7 +2962,7 @@ sub optimize_level4( $$ ) { # now on. # $chainref->{optflags} |= DONT_OPTIMIZE; - } else { + } elsif ( ! ( $chainref->{optflags} & DONT_MOVE ) ) { # # Replace references to this chain with the target and add the matches #