Small efficiency change in helper processing.

Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
Tom Eastep 2013-06-04 12:48:22 -07:00
parent fc3e3dbf3c
commit 2b579d2dff

View File

@ -5075,9 +5075,11 @@ sub get_configuration( $$$$ ) {
%helpers_enabled = %helpers_temp; %helpers_enabled = %helpers_temp;
while ( my ( $helper, $enabled ) = each %helpers_enabled ) { while ( my ( $helper, $enabled ) = each %helpers_enabled ) {
unless ( $enabled ) {
$helper =~ s/-0/0/; $helper =~ s/-0/0/;
$helper =~ s/-/_/; $helper =~ s/-/_/;
$capabilities{uc($helper) . '_HELPER'} = 0 unless $enabled; $capabilities{uc($helper) . '_HELPER'} = 0;
}
} }
} elsif ( have_capability 'CT_TARGET' ) { } elsif ( have_capability 'CT_TARGET' ) {
$helpers_enabled{$_} = 0 for keys %helpers_enabled; $helpers_enabled{$_} = 0 for keys %helpers_enabled;