From 61f661e79e34f5a91d2bc6592a90c77356e2f94f Mon Sep 17 00:00:00 2001 From: teastep Date: Mon, 14 May 2007 21:30:04 +0000 Subject: [PATCH] Fix 'add' into empty ipsec zone git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@6347 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb --- Shorewall-perl/Shorewall/Zones.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Shorewall-perl/Shorewall/Zones.pm b/Shorewall-perl/Shorewall/Zones.pm index 47d0d6a2f..77a69c016 100644 --- a/Shorewall-perl/Shorewall/Zones.pm +++ b/Shorewall-perl/Shorewall/Zones.pm @@ -251,7 +251,7 @@ sub determine_zones() $zone_hash{in_out} = parse_zone_option_list( $options || '',$zoneref->{type} ); $zone_hash{in} = parse_zone_option_list( $in_options || '', $zoneref->{type} ); $zone_hash{out} = parse_zone_option_list( $out_options || '', $zoneref->{type} ); - $zone_hash{complex} = ($type eq 'ipsec4' || $options || $in_options || $out_options ? 1 : 0); + $zone_hash{complex} = ($zoneref->{type} eq 'ipsec4' || $options || $in_options || $out_options ? 1 : 0); $zoneref->{options} = \%zone_hash; $zoneref->{interfaces} = {};