mirror of
https://gitlab.com/shorewall/code.git
synced 2025-02-06 12:59:45 +01:00
Fix two bugs in the UNTRACKED section implementation.
Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
parent
575673a8f5
commit
18c0956374
@ -2319,7 +2319,7 @@ sub process_rule1 ( $$$$$$$$$$$$$$$$$$ ) {
|
|||||||
} elsif ( $section == INVALID_SECTION ) {
|
} elsif ( $section == INVALID_SECTION ) {
|
||||||
$auxchain = invalid_chain( ${sourcezone}, ${destzone} );
|
$auxchain = invalid_chain( ${sourcezone}, ${destzone} );
|
||||||
} elsif ( $section == UNTRACKED_SECTION ) {
|
} elsif ( $section == UNTRACKED_SECTION ) {
|
||||||
$auxchain = related_chain( ${sourcezone}, ${destzone} );
|
$auxchain = untracked_chain( ${sourcezone}, ${destzone} );
|
||||||
} else {
|
} else {
|
||||||
$auxchain = related_chain( ${sourcezone}, ${destzone} );
|
$auxchain = related_chain( ${sourcezone}, ${destzone} );
|
||||||
}
|
}
|
||||||
@ -2609,7 +2609,7 @@ sub process_section ($) {
|
|||||||
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' );
|
finish_section ( 'ESTABLISHED,RELATED,INVALID,UNTRACKED' );
|
||||||
}
|
}
|
||||||
|
|
||||||
$section = $section_map{$sect};
|
$section = $section_map{$sect};
|
||||||
|
Loading…
Reference in New Issue
Block a user