[3268104] CiscoVTP.pm i_vlan_membership() array bounds (Michael Sanderson)

This commit is contained in:
Oliver Gorwits
2012-04-12 15:29:08 +01:00
parent d0fbfdea86
commit 428c007543
2 changed files with 2 additions and 0 deletions

View File

@@ -25,6 +25,7 @@ version 2.07 ()
* [2986858] Fix the patch from this ticket (Oliver Gorwits)
* [3076592] Not an ARRAY reference in Info.pm (Oliver Gorwits)
* [3136084] Rename Allied Telesyn to Allied Telesis (Oliver Gorwits)
* [3268104] CiscoVTP.pm i_vlan_membership() array bounds (Michael Sanderson)
version 2.06 (2011-09-28)

View File

@@ -244,6 +244,7 @@ sub i_vlan_membership {
next unless $list;
my $vlanlist = [ split( //, unpack( "B*", $list ) ) ];
foreach my $vlan ( keys %oper_vlans ) {
next if (($vlan < $offset) or ($vlan - $offset > 1024));
push( @{ $i_vlan_membership->{$port} }, $vlan )
if ( @$vlanlist[ $vlan - $offset ] );
}