Catch missing action in rules

git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@6433 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb
This commit is contained in:
teastep 2007-05-21 19:50:24 +00:00
parent 9673cb56fd
commit 95418990fe

View File

@ -1193,6 +1193,8 @@ sub process_rule ( $$$$$$$$$$ ) {
my $action = isolate_basic_target $target; my $action = isolate_basic_target $target;
fatal_error "Invalid or missing ACTION ( $target )" unless defined $action;
$optimize = 0 if $action =~ /!$/; $optimize = 0 if $action =~ /!$/;
if ( $source eq 'all' ) { if ( $source eq 'all' ) {