Require that the '-j' part of a free-form rule be known.

Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
Tom Eastep 2013-04-11 18:29:45 -07:00
parent 614c5e6155
commit ff4fb21044

View File

@ -2095,6 +2095,8 @@ sub process_rule ( $$$$$$$$$$$$$$$$$$$ ) {
if ( $inline_matches =~ /^(.*\s+)-j\s+(.+)$/ ) {
$matches .= $1;
$action = $2;
my ( $target ) = split ' ', $action;
fatal_error "Unknown jump target ($action)" unless $targets{$target};
fatal_error "INLINE may not have a parameter when '-j' is specified in the free-form area" if $param ne '';
} else {
$matches .= "$inline_matches ";