From 55e8ff29c74d5854f03850c5113968148e1e2c47 Mon Sep 17 00:00:00 2001 From: teastep Date: Mon, 7 May 2007 14:48:36 +0000 Subject: [PATCH] Mini-optimization in Providers handling git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@6266 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb --- Shorewall-perl/Shorewall/Providers.pm | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Shorewall-perl/Shorewall/Providers.pm b/Shorewall-perl/Shorewall/Providers.pm index b96c9bde8..105cb7ae5 100644 --- a/Shorewall-perl/Shorewall/Providers.pm +++ b/Shorewall-perl/Shorewall/Providers.pm @@ -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; }