mirror of
https://gitlab.com/shorewall/code.git
synced 2025-03-05 10:02:19 +01:00
Fix target of <action(params)>
This commit is contained in:
parent
758a50fa84
commit
4fdec73808
@ -835,15 +835,13 @@ sub process_rule_common ( $$$$$$$$$$$$$$$$ ) {
|
|||||||
#
|
#
|
||||||
$normalized_target = normalize_action( $basictarget, $loglevel, $param );
|
$normalized_target = normalize_action( $basictarget, $loglevel, $param );
|
||||||
|
|
||||||
if ( $inaction3 ) {
|
unless ( $inaction3 ) {
|
||||||
if ( my $ref = use_action( $normalized_target ) ) {
|
|
||||||
new_nat_chain $ref->{name} if ( $actiontype = $targets{$basictarget} ) & NATRULE;
|
|
||||||
}
|
|
||||||
} else {
|
|
||||||
fatal_error "An action may not invoke itself" if $basictarget eq $inaction1;
|
fatal_error "An action may not invoke itself" if $basictarget eq $inaction1;
|
||||||
process_action2( $normalized_target ) if use_action( $normalized_target ) && ! ( $actiontype & BUILTIN );
|
process_action2( $normalized_target ) if use_action( $normalized_target ) && ! ( $actiontype & BUILTIN );
|
||||||
$actiontype = $targets{$basictarget};
|
$actiontype = $targets{$basictarget};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$action = $basictarget; # Remove params, if any, from $action.
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( $inaction1 ) {
|
if ( $inaction1 ) {
|
||||||
|
Loading…
Reference in New Issue
Block a user