From 3d2dd7344ce13ef3cf3f67b0a51285c661810073 Mon Sep 17 00:00:00 2001 From: Oliver Gorwits Date: Sat, 18 Nov 2023 10:00:40 +0000 Subject: [PATCH] fix bug in snmpwalk parser --- lib/App/Netdisco/Util/Snapshot.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/App/Netdisco/Util/Snapshot.pm b/lib/App/Netdisco/Util/Snapshot.pm index aee9944a..641f76b1 100644 --- a/lib/App/Netdisco/Util/Snapshot.pm +++ b/lib/App/Netdisco/Util/Snapshot.pm @@ -135,7 +135,7 @@ sub snmpwalk_to_cache { else { # on rare occasions a vendor returns .0 and .something delete $leaves{$key} - if defined $leaves{$key} and ref q{} eq $leaves{$key}; + if defined $leaves{$key} and ref q{} eq ref $leaves{$key}; $leaves{$key}->{$idx} = $oids{$orig_oid}; }