From 9af7a7661ca3b4f3a706984c4ee24b4e0470d5c4 Mon Sep 17 00:00:00 2001 From: "Eric A. Miller" Date: Tue, 27 Mar 2018 21:05:26 -0400 Subject: [PATCH] Fix logic for determining if MIB leaf supports set operations --- lib/SNMP/Info.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/SNMP/Info.pm b/lib/SNMP/Info.pm index 5d92b867..c9332e83 100644 --- a/lib/SNMP/Info.pm +++ b/lib/SNMP/Info.pm @@ -4625,7 +4625,7 @@ sub _validate_autoload_method { # skip the check and return if ($access) { unless ( ( $method =~ /^set/ && $access =~ /Write|Create/ ) - || $access =~ /Read|Create/ ) + || ($method !~ /^set/ && $access =~ /Read|Create/) ) { print "SNMP::Info::_validate_autoload_method($attr : $oid) Not accessable for requested operation.\n"