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"