summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIlya Etingof <etingof@gmail.com>2018-09-13 22:36:35 +0200
committerIlya Etingof <etingof@gmail.com>2018-09-13 23:47:22 +0200
commitddf30851798e8542bd98bd294785ecb79a5c1ae0 (patch)
treeed6cecb8672f1696bc436795ed5ab09432324a76
parent51a15bdaa0d64ea1bfcce5c461ebdbe54ac701d7 (diff)
downloadpysnmp-git-ddf30851798e8542bd98bd294785ecb79a5c1ae0.tar.gz
Release 4.4.6v4.4.6
-rw-r--r--CHANGES.txt6
-rw-r--r--pysnmp/proto/rfc1902.py2
2 files changed, 6 insertions, 2 deletions
diff --git a/CHANGES.txt b/CHANGES.txt
index dd86b589..96fed964 100644
--- a/CHANGES.txt
+++ b/CHANGES.txt
@@ -1,5 +1,5 @@
-Revision 4.4.6, released 2018-08-XX
+Revision 4.4.6, released 2018-09-13
-----------------------------------
- Improved package build and dependency tracking
@@ -9,6 +9,10 @@ Revision 4.4.6, released 2018-08-XX
would fail.
- Fix to tolerate possible duplicate enumerations in `Bits` and `Integer`
SMI types.
+- Fix to tolerate non-initialised entries in SNMP community table. Once a
+ bad entry sneaked into the SNMP community table, all the subsequent
+ SNMP v1/v2c operations failed. The fix ignores incomplete SNMP community
+ table entries in the course of building indices.
Revision 4.4.5, released 2018-08-05
-----------------------------------
diff --git a/pysnmp/proto/rfc1902.py b/pysnmp/proto/rfc1902.py
index ee82ef5a..3caa81d7 100644
--- a/pysnmp/proto/rfc1902.py
+++ b/pysnmp/proto/rfc1902.py
@@ -605,7 +605,7 @@ class Bits(OctetString):
def __new__(cls, *args, **kwargs):
if 'namedValues' in kwargs:
- Bits = cls.withNamedBits(**kwargs.pop('namedValues'))
+ Bits = cls.withNamedBits(**dict(kwargs.pop('namedValues')))
return Bits(*args, **kwargs)
return OctetString.__new__(cls)