mirror of
https://gitlab.com/shorewall/code.git
synced 2024-11-23 16:13:18 +01:00
Correct section handling:
- Correct typo (' INVALID' -> 'INVALID' ) - Don't jump to non-existent target in finish_chain_section() Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
parent
6306103991
commit
b1b2aa910e
@ -896,7 +896,7 @@ sub finish_chain_section ($$$) {
|
||||
}
|
||||
|
||||
if ( $twochains ) {
|
||||
add_ijump $chainref, g => $target;
|
||||
add_ijump $chainref, g => $target if $target;
|
||||
%state = ();
|
||||
last;
|
||||
}
|
||||
@ -2613,7 +2613,7 @@ sub process_section ($) {
|
||||
finish_section ( 'ESTABLISHED,RELATED' );
|
||||
} elsif ( $sect eq 'UNTRACKED' ) {
|
||||
@sections{'ALL','ESTABLISHED','RELATED', 'INVALID' } = ( 1, 1, 1, 1 );
|
||||
finish_section ( 'ESTABLISHED,RELATED, INVALID' );
|
||||
finish_section ( 'ESTABLISHED,RELATED,INVALID' );
|
||||
} elsif ( $sect eq 'NEW' ) {
|
||||
@sections{'ALL','ESTABLISHED','RELATED','INVALID','UNTRACKED', 'NEW'} = ( 1, 1, 1, 1, 1, 1 );
|
||||
finish_section ( 'ESTABLISHED,RELATED,INVALID,UNTRACKED' );
|
||||
|
Loading…
Reference in New Issue
Block a user