Correct handling of NFQUEUE(queue-num) as a policy.

Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
Tom Eastep 2010-02-25 07:50:17 -08:00
parent cd2056f0aa
commit 4dedc26d9e

View File

@ -635,7 +635,11 @@ 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 };
my $target = $to;
$target =~ s/\s.*//; # $to might hold something like 'NFQUEUE --queue-num 0'
$toref = ensure_chain( $fromref->{table} , $to ) unless $builtin_target{ $target };
}
#