mirror of
https://gitlab.com/shorewall/code.git
synced 2025-06-20 01:37:59 +02:00
Correct handling of duplicate states in the mangle file
Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
parent
695db284c0
commit
79430673b8
@ -765,7 +765,7 @@ sub process_mangle_rule1( $$$$$$$$$$$$$$$$$$ ) {
|
|||||||
|
|
||||||
for ( @state ) {
|
for ( @state ) {
|
||||||
fatal_error "Invalid STATE ($_)" unless exists $state{$_};
|
fatal_error "Invalid STATE ($_)" unless exists $state{$_};
|
||||||
fatal_error "Duplicate STATE ($_)" if $state{$_};
|
fatal_error "Duplicate STATE ($_)" if $state{$_}++;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
$state = 'ALL';
|
$state = 'ALL';
|
||||||
|
Loading…
x
Reference in New Issue
Block a user