summaryrefslogtreecommitdiff
path: root/pyasn1
diff options
context:
space:
mode:
authorIlya Etingof <etingof@gmail.com>2017-10-19 01:01:41 +0200
committerIlya Etingof <etingof@gmail.com>2017-10-19 01:01:41 +0200
commit4913021b1a6a68b5cdf725de3e589ca9ba8d077d (patch)
treefc7fb4c48a73f55084c58a87de3928211b3af0dc /pyasn1
parent251d99bde71b8311d087d13d2564a016fad3290e (diff)
downloadpyasn1-git-4913021b1a6a68b5cdf725de3e589ca9ba8d077d.tar.gz
fix to Null decoder to initialize decoded value to ''
Diffstat (limited to 'pyasn1')
-rw-r--r--pyasn1/codec/ber/decoder.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pyasn1/codec/ber/decoder.py b/pyasn1/codec/ber/decoder.py
index 82bf19a..b02aeec 100644
--- a/pyasn1/codec/ber/decoder.py
+++ b/pyasn1/codec/ber/decoder.py
@@ -284,7 +284,7 @@ class NullDecoder(AbstractSimpleDecoder):
head, tail = substrate[:length], substrate[length:]
- component = self._createComponent(asn1Spec, tagSet, noValue, **options)
+ component = self._createComponent(asn1Spec, tagSet, '', **options)
if head:
raise error.PyAsn1Error('Unexpected %d-octet substrate for Null' % length)