Better detection of out-of-order policy file

git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@6971 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb
This commit is contained in:
teastep 2007-07-27 04:11:44 +00:00
parent ae3efc810c
commit 48b993f0cf

View File

@ -226,6 +226,8 @@ sub validate_policy()
} else {
fatal_error "Duplicate policy: $client $server $policy";
}
} elsif ( $chainref->{policy} ) {
fatal_error "Duplicate policy: $client $server $policy";
} else {
$chainref->{is_policy} = 1;
$chainref->{policy} = $policy;