mirror of
https://gitlab.com/shorewall/code.git
synced 2025-06-24 11:41:26 +02:00
Simplify a loop in process_actions2()
Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
parent
7cbf113ba0
commit
676af32ebc
@ -1488,13 +1488,9 @@ sub process_actions2 () {
|
|||||||
|
|
||||||
my $ref;
|
my $ref;
|
||||||
|
|
||||||
for my $option ( @auditoptions ) {
|
for ( map normalize_action_name $_ , ( grep $auditactions{$_}, ( map $config{$_}, @auditoptions ) ) ) {
|
||||||
my $action = $config{ $option };
|
if ( $ref = use_action( $_ ) ) {
|
||||||
|
process_action( $ref );
|
||||||
if ( $auditactions{$action} ) {
|
|
||||||
if ( $ref = use_action( normalize_action_name $action ) ) {
|
|
||||||
process_action( $ref );
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1504,6 +1500,7 @@ sub process_actions2 () {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
################################################################################
|
################################################################################
|
||||||
# End of functions moved from the Actions module in 4.4.16
|
# End of functions moved from the Actions module in 4.4.16
|
||||||
################################################################################
|
################################################################################
|
||||||
|
Loading…
x
Reference in New Issue
Block a user