Don't unshift length from broken lldpRemManAddrTable implementations (G. Shtern)

This commit is contained in:
Oliver Gorwits
2014-05-08 20:02:11 +01:00
parent efecf1bbb7
commit 63547c2ea1
2 changed files with 2 additions and 1 deletions

View File

@@ -298,7 +298,7 @@ sub _lldp_addr_index {
my @oids = split( /\./, $idx );
my $index = join( '.', splice( @oids, 0, 3 ) );
my $proto = shift(@oids);
my $length = shift(@oids);
my $length = shift(@oids) if scalar @oids > 4;
# IPv4
if ( $proto == 1 ) {