Don't copy a chain that has a single RETURN rule.

Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
Tom Eastep 2013-01-22 09:07:07 -08:00
parent 4ed5c5fdfe
commit f61f5a8183

View File

@ -2962,7 +2962,7 @@ sub optimize_level4( $$ ) {
# now on. # now on.
# #
$chainref->{optflags} |= DONT_OPTIMIZE; $chainref->{optflags} |= DONT_OPTIMIZE;
} else { } elsif ( ! ( $chainref->{optflags} & DONT_MOVE ) ) {
# #
# Replace references to this chain with the target and add the matches # Replace references to this chain with the target and add the matches
# #