Use updated values in configuration verification

Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
Tom Eastep 2011-06-24 07:22:41 -07:00
parent 7ec5f60571
commit 7583a5c7a3

View File

@ -2915,13 +2915,15 @@ sub update_config_file( $ ) {
# #
# OPTION='' - use default if 'Yes' or 'No' # OPTION='' - use default if 'Yes' or 'No'
# #
$val = $default if $default eq 'Yes' || $default eq 'No'; $config{$var} = $val = $default if $default eq 'Yes' || $default eq 'No';
} else { } else {
# #
# Wasn't mentioned in old file - use default value # Wasn't mentioned in old file - use default value
# #
$val = $default; $config{$var} = $val = $default;
} }
} }
unless ( $val =~ /^[-\w\/\.]*$/ ) { unless ( $val =~ /^[-\w\/\.]*$/ ) {