added check for undef port in c_ip()

This commit is contained in:
Max Baker
2003-03-26 20:33:39 +00:00
parent e4e039e2e1
commit af51ee7ea4

View File

@@ -154,6 +154,7 @@ sub c_ip {
my %ip_port;
foreach my $entry (keys %$bay_topo_ip){
my $port = $bay_topo_port->{$entry};
next unless defined $port;
next if $port == 0;
my $ip = $bay_topo_ip->{$entry};
push(@{$ip_port{$port}},$ip);