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
This commit is contained in:
teastep 2007-04-22 14:21:48 +00:00
parent 84fbca4917
commit ab17a8ba51

View File

@ -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()