Don't capture result of an RE match. Correct a comment

Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
Tom Eastep 2012-05-20 07:06:59 -07:00
parent 70e4c26df1
commit 84f92aa87c

View File

@ -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 # First, a helper function that formats a single option
# #
@ -3337,7 +3337,7 @@ sub optimize_level4( $$ ) {
$rule--; $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 push @$rulesref, $lastref; # Restore the last simple rule
} else { } else {
# #