diff options
author | elie <elie> | 2014-11-16 16:11:31 +0000 |
---|---|---|
committer | elie <elie> | 2014-11-16 16:11:31 +0000 |
commit | 481200dc56925509a54b89c28d054ba28f4e437c (patch) | |
tree | 000c6748c98640346299f6cb4361a377c0c99be6 | |
parent | afde8cf1ddee36e540afb9a48b914fef8cfd1a0d (diff) | |
download | pysnmp-481200dc56925509a54b89c28d054ba28f4e437c.tar.gz |
getNextVarBinds() will always cast passed var-binds into pyasn1
-rw-r--r-- | pysnmp/entity/rfc3413/cmdgen.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pysnmp/entity/rfc3413/cmdgen.py b/pysnmp/entity/rfc3413/cmdgen.py index 2ef85f2..eb75582 100644 --- a/pysnmp/entity/rfc3413/cmdgen.py +++ b/pysnmp/entity/rfc3413/cmdgen.py @@ -21,7 +21,7 @@ def getNextVarBinds(origVarBinds, varBinds): rfc1905.NoSuchInstance.tagSet, rfc1905.EndOfMibView.tagSet): nonNulls = nonNulls - 1 - elif origVarBinds[idx][0].asTuple() >= varBinds[idx][0].asTuple(): + elif v2c.ObjectIdentifier(origVarBinds[idx][0]).asTuple() >= varBinds[idx][0].asTuple(): errorIndication = errind.oidNotIncreasing rspVarBinds.insert(0, (varBinds[idx][0], __null)) |