From a17852260ae4349f36ead96288bc6c28e866d083 Mon Sep 17 00:00:00 2001 From: Tom Eastep Date: Mon, 14 Feb 2011 16:54:27 -0800 Subject: [PATCH] Correct optimization fix --- 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 d733fde82..0fadd96c6 100644 --- a/Shorewall/Perl/Shorewall/Chains.pm +++ b/Shorewall/Perl/Shorewall/Chains.pm @@ -1838,7 +1838,7 @@ sub optimize_level4( $$ ) { # # Chain has a single rule # - if ( $firstrule =~ /^-A -[jg] ([^\s])(\s+-m comment .*)?\s*$/ ) { + if ( $firstrule =~ /^-A -[jg] ([^\s]+)(\s+-m comment .*)?\s*$/ ) { # # Easy case -- the rule is a simple jump #