From a59af743a999737705e263f6653b07f06384b4c8 Mon Sep 17 00:00:00 2001 From: Oliver Gorwits Date: Wed, 17 Aug 2022 15:38:55 +0100 Subject: [PATCH] avoid exception when trying translateObj on .0.0 --- lib/SNMP/Info.pm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/SNMP/Info.pm b/lib/SNMP/Info.pm index 60ab724b..34a2f8bc 100644 --- a/lib/SNMP/Info.pm +++ b/lib/SNMP/Info.pm @@ -4039,6 +4039,8 @@ Takes an OID and return the object name if the right MIB is loaded. sub munge_e_type { my $oid = shift; + return unless $oid; + return $oid if $oid =~ m/^\.0/; my $name = &SNMP::translateObj($oid); return $name if defined($name);