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\/\.]*$/ ) {