mirror of
https://gitlab.com/shorewall/code.git
synced 2025-06-29 22:21:07 +02:00
Optimize a test in finish_chain_section().
Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user