From 8c75c3d93c2198a759a4461188a0568d78e01ebd Mon Sep 17 00:00:00 2001 From: Tom Eastep Date: Tue, 24 Aug 2010 13:08:06 -0700 Subject: [PATCH] Fix old ipset detection bug --- Shorewall/Perl/Shorewall/Config.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Shorewall/Perl/Shorewall/Config.pm b/Shorewall/Perl/Shorewall/Config.pm index dadbcc472..b81af1418 100644 --- a/Shorewall/Perl/Shorewall/Config.pm +++ b/Shorewall/Perl/Shorewall/Config.pm @@ -2411,7 +2411,7 @@ sub IPSet_Match() { qt1( "$iptables -D $sillyname -m set --match-set $sillyname src -j ACCEPT" ); $result = ! ( $capabilities{OLD_IPSET_MATCH} = 0 ); } else { - have_capability 'OLD_IPSET_MATCH'; + $result = have_capability 'OLD_IPSET_MATCH'; } qt( "$ipset -X $sillyname" );