Optimize a test in finish_chain_section().

Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
Tom Eastep 2013-01-07 07:00:15 -08:00
parent ca202ca10b
commit 5dbe2aa9ec

View File

@ -878,10 +878,10 @@ sub finish_chain_section ($$$) {
if ( $state && ! $config{FASTACCEPT} ) {
if ( $chainref->{name} eq $chain1ref->{name} ) {
add_ijump $chainref, j => 'ACCEPT', state_imatch $state;
} else {
if ( $relatedchain ) {
add_ijump $chainref, j => 'ACCEPT';
} else {
add_ijump $chainref, j => 'ACCEPT', state_imatch $state;
}
}