diff options
author | elie <elie> | 2007-11-26 10:25:38 +0000 |
---|---|---|
committer | elie <elie> | 2007-11-26 10:25:38 +0000 |
commit | 226553c975e6506a0559a262a4bdd7b79077f2a1 (patch) | |
tree | 785f69f89bb815a1ef94178d17c68d4b6b6b8a3d | |
parent | 3dbad5923fa69dbe5753eca62e5a01e7bc38efe1 (diff) | |
download | pysnmp-226553c975e6506a0559a262a4bdd7b79077f2a1.tar.gz |
release SM state information on response data mismatch
-rw-r--r-- | pysnmp/proto/mpmod/rfc3412.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/pysnmp/proto/mpmod/rfc3412.py b/pysnmp/proto/mpmod/rfc3412.py index e9fd639..9aac846 100644 --- a/pysnmp/proto/mpmod/rfc3412.py +++ b/pysnmp/proto/mpmod/rfc3412.py @@ -638,6 +638,7 @@ class SnmpV3MessageProcessingModel(AbstractMessageProcessingModel): securityLevel != cachedReqParams['securityLevel'] or \ contextEngineId != cachedReqParams['contextEngineId'] or \ contextName != cachedReqParams['contextName']: + smHandler.releaseStateInformation(securityStateReference) raise error.StatusInformation( errorIndication = 'dataMispatch' ) @@ -724,6 +725,7 @@ class SnmpV3MessageProcessingModel(AbstractMessageProcessingModel): statusInformation, None ) + smHandler.releaseStateInformation(securityStateReference) raise error.StatusInformation( errorIndication = 'unknownPDU' ) |