Allow action-only rules -- improve error messages

git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@6228 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb
This commit is contained in:
teastep 2007-05-04 01:28:37 +00:00
parent aeb3460d2b
commit c7bc204ba0

View File

@ -950,7 +950,9 @@ sub process_rule1 ( $$$$$$$$$$ ) {
$dest = ALLIPv4;
}
fatal_error "Missing source zone" if $sourcezone eq '-';
fatal_error "Unknown source zone ($sourcezone)" unless $zones{$sourcezone};
fatal_error "Missing destination zone" if $destzone eq '-';
fatal_error "Unknown destination zone ($destzone)" unless $zones{$destzone};
my $restriction = NO_RESTRICT;