mirror of
https://gitlab.com/shorewall/code.git
synced 2025-06-11 12:16:57 +02: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 ) {
|
if ( $twochains ) {
|
||||||
add_ijump $chainref, g => $target;
|
add_ijump $chainref, g => $target if $target;
|
||||||
%state = ();
|
%state = ();
|
||||||
last;
|
last;
|
||||||
}
|
}
|
||||||
@ -2613,7 +2613,7 @@ sub process_section ($) {
|
|||||||
finish_section ( 'ESTABLISHED,RELATED' );
|
finish_section ( 'ESTABLISHED,RELATED' );
|
||||||
} elsif ( $sect eq 'UNTRACKED' ) {
|
} elsif ( $sect eq 'UNTRACKED' ) {
|
||||||
@sections{'ALL','ESTABLISHED','RELATED', 'INVALID' } = ( 1, 1, 1, 1 );
|
@sections{'ALL','ESTABLISHED','RELATED', 'INVALID' } = ( 1, 1, 1, 1 );
|
||||||
finish_section ( 'ESTABLISHED,RELATED, INVALID' );
|
finish_section ( 'ESTABLISHED,RELATED,INVALID' );
|
||||||
} elsif ( $sect eq 'NEW' ) {
|
} elsif ( $sect eq 'NEW' ) {
|
||||||
@sections{'ALL','ESTABLISHED','RELATED','INVALID','UNTRACKED', 'NEW'} = ( 1, 1, 1, 1, 1, 1 );
|
@sections{'ALL','ESTABLISHED','RELATED','INVALID','UNTRACKED', 'NEW'} = ( 1, 1, 1, 1, 1, 1 );
|
||||||
finish_section ( 'ESTABLISHED,RELATED,INVALID,UNTRACKED' );
|
finish_section ( 'ESTABLISHED,RELATED,INVALID,UNTRACKED' );
|
||||||
|
Loading…
x
Reference in New Issue
Block a user