Eliminate silly extra loop in accounting processing.

Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
Tom Eastep 2013-12-18 09:19:16 -08:00
parent dd38cdc0f0
commit cd5be38cfb

View File

@ -431,7 +431,6 @@ sub process_accounting_rule( ) {
1 ); 1 );
my $nonempty = 0; my $nonempty = 0;
for my $proto ( split_list $protos, 'Protocol' ) {
fatal_error 'ACTION must be specified' if $action eq '-'; fatal_error 'ACTION must be specified' if $action eq '-';
if ( $action eq 'SECTION' ) { if ( $action eq 'SECTION' ) {
@ -442,7 +441,6 @@ sub process_accounting_rule( ) {
$nonempty |= process_accounting_rule1( $action, $chain, $source, $dest, $proto, $ports, $sports, $user, $mark, $ipsec, $headers ); $nonempty |= process_accounting_rule1( $action, $chain, $source, $dest, $proto, $ports, $sports, $user, $mark, $ipsec, $headers );
} }
} }
}
$nonempty; $nonempty;
} }