From 3b7232a5fa322ac5431d010e88f4bf8d65eb13fb Mon Sep 17 00:00:00 2001 From: Tom Eastep Date: Mon, 14 Feb 2011 10:00:28 -0800 Subject: [PATCH] Fix a bug in the optimizer --- 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 56ed2bd71..aa1e128b7 100644 --- a/Shorewall/Perl/Shorewall/Chains.pm +++ b/Shorewall/Perl/Shorewall/Chains.pm @@ -1896,7 +1896,7 @@ sub optimize_level4( $$ ) { # # Chain has a single rule # - if ( $firstrule =~ /^-A -[jg] (.*)$/ ) { + if ( $firstrule =~ /^-A -[jg] ([^\s])(\s+-m comment .*)?\s*$/ ) { # # Easy case -- the rule is a simple jump #