mirror of
https://gitlab.com/shorewall/code.git
synced 2025-01-17 19:18:32 +01:00
Don't add chains with RETURNs to %terminating.
Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
parent
975fb8992e
commit
199bce925f
@ -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' );
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user