mirror of
https://gitlab.com/shorewall/code.git
synced 2024-12-16 03:10:39 +01:00
Fix missing action in macro or action
git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@6434 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb
This commit is contained in:
parent
95418990fe
commit
28528770d4
@ -323,6 +323,8 @@ sub process_action1 ( $$ ) {
|
||||
fatal_error "Parameter value not allowed in action files ($param)" if $paramtype & NATRULE;
|
||||
}
|
||||
|
||||
fatal_error "Invalid or missing ACTION ( $wholetarget )" unless defined $target;
|
||||
|
||||
if ( find_macro $target ) {
|
||||
process_macro1( $action, $macros{$target} );
|
||||
} else {
|
||||
|
@ -809,6 +809,9 @@ sub process_macro ( $$$$$$$$$$$$ ) {
|
||||
}
|
||||
|
||||
my $action = isolate_basic_target $mtarget;
|
||||
|
||||
fatal_error "Invalid or missing ACTION ( $mtarget )" unless defined $action;
|
||||
|
||||
my $actiontype = $targets{$action} || find_macro( $action );
|
||||
|
||||
fatal_error "Invalid Action ($mtarget) in macro" unless $actiontype & ( ACTION + STANDARD + NATRULE + MACRO );
|
||||
|
Loading…
Reference in New Issue
Block a user