Don't add chains with RETURNs to %terminating.

Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
Tom Eastep 2013-01-09 12:54:29 -08:00
parent 975fb8992e
commit 199bce925f

View File

@ -2898,7 +2898,7 @@ sub optimize_level4( $$ ) {
my $name = $chainref->{name};
my $lastref = $chainref->{rules}[-1];
unless ( $terminating{$name} ) {
unless ( $chainref->{optflags} & RETURNS || $terminating{$name} ) {
$progress = 1 if $terminating{$name} = ( ( $terminating{$lastref->{target} || ''} ) || ( $lastref->{jump} || '' ) eq 'g' );
}