mirror of
https://gitlab.com/shorewall/code.git
synced 2025-06-27 13:11:57 +02:00
Eliminate silly extra loop in accounting processing.
Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
parent
dd38cdc0f0
commit
cd5be38cfb
@ -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;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user