mirror of
https://gitlab.com/shorewall/code.git
synced 2025-02-17 18:21:03 +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 $optimize = $wildcard ? ( $basictarget =~ /!$/ ? 0 : $config{OPTIMIZE} & 1 ) : 0;
|
||||||
my $inaction1;
|
my $inaction1;
|
||||||
my $inaction3;
|
my $inaction3;
|
||||||
my $normalized_target = normalize_action_name( $basictarget, $loglevel, $param );
|
my $normalized_target;
|
||||||
|
|
||||||
if ( defined $chainref ) {
|
if ( defined $chainref ) {
|
||||||
if ( reftype $chainref ) {
|
if ( reftype $chainref ) {
|
||||||
@ -834,6 +834,8 @@ sub process_rule_common ( $$$$$$$$$$$$$$$$ ) {
|
|||||||
# Handle actions
|
# Handle actions
|
||||||
#
|
#
|
||||||
if ( $actiontype & ACTION ) {
|
if ( $actiontype & ACTION ) {
|
||||||
|
$normalized_target = normalize_action_name( $basictarget, $loglevel, $param );
|
||||||
|
|
||||||
if ( $inaction1 ) {
|
if ( $inaction1 ) {
|
||||||
add_requiredby( $target , $inaction1 );
|
add_requiredby( $target , $inaction1 );
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user