From ddf30851798e8542bd98bd294785ecb79a5c1ae0 Mon Sep 17 00:00:00 2001 From: Ilya Etingof Date: Thu, 13 Sep 2018 22:36:35 +0200 Subject: Release 4.4.6 --- CHANGES.txt | 6 +++++- pysnmp/proto/rfc1902.py | 2 +- 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) -- cgit v1.2.1