Mini-optimization in Providers handling

git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@6266 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb
This commit is contained in:
teastep 2007-05-07 14:48:36 +00:00
parent b9fcda9812
commit 55e8ff29c7

View File

@ -207,8 +207,7 @@ sub setup_providers() {
fatal_error "Invalid Mark Value ($mark) with HIGH_ROUTE_MARKS=No" if ! $config{HIGH_ROUTE_MARKS};
}
for my $provider ( keys %providers ) {
my $num = $providers{$provider}{mark};
for my $num ( values %providers ) {
fatal_error "Duplicate mark value ( $mark )" if $num == $val;
}