mirror of
https://gitlab.com/shorewall/code.git
synced 2024-11-24 00:23:28 +01:00
Only call normalized_action_name() when needed
This commit is contained in:
parent
7be3ed33d5
commit
44f001388a
@ -757,7 +757,7 @@ sub process_rule_common ( $$$$$$$$$$$$$$$$ ) {
|
||||
my $optimize = $wildcard ? ( $basictarget =~ /!$/ ? 0 : $config{OPTIMIZE} & 1 ) : 0;
|
||||
my $inaction1;
|
||||
my $inaction3;
|
||||
my $normalized_target = normalize_action_name( $basictarget, $loglevel, $param );
|
||||
my $normalized_target;
|
||||
|
||||
if ( defined $chainref ) {
|
||||
if ( reftype $chainref ) {
|
||||
@ -834,6 +834,8 @@ sub process_rule_common ( $$$$$$$$$$$$$$$$ ) {
|
||||
# Handle actions
|
||||
#
|
||||
if ( $actiontype & ACTION ) {
|
||||
$normalized_target = normalize_action_name( $basictarget, $loglevel, $param );
|
||||
|
||||
if ( $inaction1 ) {
|
||||
add_requiredby( $target , $inaction1 );
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user