From 31744543009a4bb896be76ee5c90008dea94d098 Mon Sep 17 00:00:00 2001 From: Tom Eastep Date: Sun, 28 Sep 2014 14:38:01 -0700 Subject: [PATCH] Correct SAVE_IPSETS logic in Config.pm Signed-off-by: Tom Eastep --- Shorewall/Perl/Shorewall/Config.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Shorewall/Perl/Shorewall/Config.pm b/Shorewall/Perl/Shorewall/Config.pm index 6410bd74b..9883a751a 100644 --- a/Shorewall/Perl/Shorewall/Config.pm +++ b/Shorewall/Perl/Shorewall/Config.pm @@ -5573,8 +5573,8 @@ sub get_configuration( $$$$$ ) { unless (default_yes_no 'SAVE_IPSETS', '', '*' ) { $val = $config{SAVE_IPSETS}; - unless ( $val = 'ipv4' ) { - my @sets = (split_list( $val= $config{SAVE_IPSETS}, 'ipset' )); + unless ( $val eq 'ipv4' ) { + my @sets = split_list( $val , 'ipset' ); $globals{SAVED_IPSETS} = \@sets; require_capability 'IPSET_V5', 'A saved ipset list', 's'; $config{SAVE_IPSETS} = '';