From 84f92aa87cf95cc4c1c2ff1d00d388d161dc05ef Mon Sep 17 00:00:00 2001 From: Tom Eastep Date: Sun, 20 May 2012 07:06:59 -0700 Subject: [PATCH] Don't capture result of an RE match. Correct a comment Signed-off-by: Tom Eastep --- Shorewall/Perl/Shorewall/Chains.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Shorewall/Perl/Shorewall/Chains.pm b/Shorewall/Perl/Shorewall/Chains.pm index 58936d718..cb86005cf 100644 --- a/Shorewall/Perl/Shorewall/Chains.pm +++ b/Shorewall/Perl/Shorewall/Chains.pm @@ -1297,7 +1297,7 @@ sub set_rule_target( $$$ ) { } # -# Convert an trule into iptables input +# Convert an irule into iptables input # # First, a helper function that formats a single option # @@ -3337,7 +3337,7 @@ sub optimize_level4( $$ ) { $rule--; } - if ( @$rulesref || ! $chainref->{builtin} || $target !~ /^(ACCEPT|DROP|REJECT)$/ ) { + if ( @$rulesref || ! $chainref->{builtin} || $target !~ /^(?:ACCEPT|DROP|REJECT)$/ ) { push @$rulesref, $lastref; # Restore the last simple rule } else { #