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; }