Make new test in add_jump() a bit safer.

Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
Tom Eastep 2010-02-28 12:44:29 -08:00
parent 91a14b4e82
commit 693d0e5d4c

View File

@ -635,7 +635,7 @@ sub add_jump( $$$;$$$ ) {
#
# Ensure that we have the chain unless it is a builtin like 'ACCEPT'
#
$toref = ensure_chain( $fromref->{table} , $to ) unless $builtin_target{$to} || $to =~ / /; #If the target has options, it must be a builtin.
$toref = ensure_chain( $fromref->{table} , $to ) unless $builtin_target{$to} || $to =~ / +./; #If the target has options, it must be a builtin.
}
#