From 6341ad15f809f7e3d3604706d92ee42880de82a5 Mon Sep 17 00:00:00 2001 From: Oliver Gorwits Date: Sun, 28 Apr 2019 19:56:39 +0100 Subject: [PATCH] #330 fix redefine of port variable --- lib/SNMP/Info/Layer2.pm | 2 +- lib/SNMP/Info/Layer3.pm | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/SNMP/Info/Layer2.pm b/lib/SNMP/Info/Layer2.pm index cfcab670..cbcc3df8 100644 --- a/lib/SNMP/Info/Layer2.pm +++ b/lib/SNMP/Info/Layer2.pm @@ -150,7 +150,7 @@ sub interfaces { my $port = $i_descr->{$iid}; next unless defined $port; - my $port = SNMP::Info::munge_null($port); + $port = SNMP::Info::munge_null($port); $port =~ s/^\s+//; $port =~ s/\s+$//; next unless length $port; diff --git a/lib/SNMP/Info/Layer3.pm b/lib/SNMP/Info/Layer3.pm index 69790ff9..7dcff6e8 100644 --- a/lib/SNMP/Info/Layer3.pm +++ b/lib/SNMP/Info/Layer3.pm @@ -335,7 +335,7 @@ sub interfaces { my $port = $i_descr->{$iid}; next unless defined $port; - my $port = SNMP::Info::munge_null($port); + $port = SNMP::Info::munge_null($port); $port =~ s/^\s+//; $port =~ s/\s+$//; next unless length $port;