forked from extern/shorewall_code
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:
parent
614c5e6155
commit
ff4fb21044
@ -2095,6 +2095,8 @@ sub process_rule ( $$$$$$$$$$$$$$$$$$$ ) {
|
|||||||
if ( $inline_matches =~ /^(.*\s+)-j\s+(.+)$/ ) {
|
if ( $inline_matches =~ /^(.*\s+)-j\s+(.+)$/ ) {
|
||||||
$matches .= $1;
|
$matches .= $1;
|
||||||
$action = $2;
|
$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 '';
|
fatal_error "INLINE may not have a parameter when '-j' is specified in the free-form area" if $param ne '';
|
||||||
} else {
|
} else {
|
||||||
$matches .= "$inline_matches ";
|
$matches .= "$inline_matches ";
|
||||||
|
Loading…
Reference in New Issue
Block a user