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 99ec099c98
commit 223e1e434a

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 };
}
#