diff options
author | elie <elie> | 2011-03-24 17:21:18 +0000 |
---|---|---|
committer | elie <elie> | 2011-03-24 17:21:18 +0000 |
commit | f2de5b9d20f3576baa47cb0f45e999566206bb27 (patch) | |
tree | 21bf2a4fff6967ce30ddf5a03b29a9dc9ba47443 /pysnmp/entity/rfc3413 | |
parent | 025f411997bdaa8e063aa6bc287470ef3652b70a (diff) | |
download | pysnmp-git-f2de5b9d20f3576baa47cb0f45e999566206bb27.tar.gz |
fix to MIB operation failure handling at CommandResponderBase.processPdu
Diffstat (limited to 'pysnmp/entity/rfc3413')
-rw-r--r-- | pysnmp/entity/rfc3413/cmdrsp.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/pysnmp/entity/rfc3413/cmdrsp.py b/pysnmp/entity/rfc3413/cmdrsp.py index a820d078..333f8792 100644 --- a/pysnmp/entity/rfc3413/cmdrsp.py +++ b/pysnmp/entity/rfc3413/cmdrsp.py @@ -110,7 +110,7 @@ class CommandResponderBase: rspPDU = v2c.apiPDU.getResponse(PDU) statusInformation = {} - + self.__pendingReqs[stateReference] = ( messageProcessingModel, securityModel, @@ -175,7 +175,9 @@ class CommandResponderBase: except pysnmp.smi.error.SmiError, errorIndication: errorStatus, errorIndex = 'genErr', len(varBinds) and 1 or 0 except pysnmp.error.PySnmpError, errorIndication: - errorStatus, errorIndex = 'genErr', len(varBinds) and 1 or 0 + if stateReference in self.__pendingReqs: + del self.__pendingReqs[stateReference] + return else: return |