From ab17a8ba5189d66707feeb49b3802e5f12d602d1 Mon Sep 17 00:00:00 2001 From: teastep Date: Sun, 22 Apr 2007 14:21:48 +0000 Subject: [PATCH] Fix multi-zone interface handling broken by 'detectnets' work git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@6057 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb --- Shorewall-perl/Shorewall/Interfaces.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Shorewall-perl/Shorewall/Interfaces.pm b/Shorewall-perl/Shorewall/Interfaces.pm index f1d8596be..d4dba4e19 100644 --- a/Shorewall-perl/Shorewall/Interfaces.pm +++ b/Shorewall-perl/Shorewall/Interfaces.pm @@ -266,7 +266,7 @@ sub validate_interfaces_file() @networks = @allipv4; } - add_group_to_zone( $zone, $zoneref->{type}, $interface, \@networks, $optionsref ) if @networks; + add_group_to_zone( $zone, $zoneref->{type}, $interface, \@networks, $optionsref ) if $zone && @networks; $interfaces{$interface}{zone} = $zone; #Must follow the call to add_group_to_zone()