From 32f341c2798e86b2ace08bbab0bc7a96007f43b1 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 75f126522..6c2c1f8fd 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] ([^\s])(\s+-m comment .*)?\s*$/ ) { + if ( $firstrule =~ /^-A -[jg] ([^\s]+)(\s+-m comment .*)?\s*$/ ) { # # Easy case -- the rule is a simple jump #