From 7583a5c7a3b2611a562b2f3f495bff90b9048817 Mon Sep 17 00:00:00 2001 From: Tom Eastep Date: Fri, 24 Jun 2011 07:22:41 -0700 Subject: [PATCH] Use updated values in configuration verification Signed-off-by: Tom Eastep --- Shorewall/Perl/Shorewall/Config.pm | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Shorewall/Perl/Shorewall/Config.pm b/Shorewall/Perl/Shorewall/Config.pm index 9880ae3ec..8c2714fc7 100644 --- a/Shorewall/Perl/Shorewall/Config.pm +++ b/Shorewall/Perl/Shorewall/Config.pm @@ -2915,13 +2915,15 @@ sub update_config_file( $ ) { # # 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 { # # Wasn't mentioned in old file - use default value # - $val = $default; + $config{$var} = $val = $default; + } + } unless ( $val =~ /^[-\w\/\.]*$/ ) {