added check for undef port in fw_mac

This commit is contained in:
Max Baker
2003-03-26 20:34:40 +00:00
parent af51ee7ea4
commit 3c3c040471

View File

@@ -110,6 +110,7 @@ sub fw_mac {
# remove port 0 forwarding table entries, only port 0 static entries
foreach my $fw (keys %$fw_mac){
my $port = $fw_port->{$fw};
next unless defined $port;
delete $fw_mac->{$fw} if $port == 0;
}