summaryrefslogtreecommitdiff
path: root/pyasn1/codec
diff options
context:
space:
mode:
authorIlya Etingof <etingof@gmail.com>2017-07-20 09:23:52 +0200
committerIlya Etingof <etingof@gmail.com>2017-07-20 09:23:52 +0200
commitec92d75361a5e2f41b28b9f87007f5503986ce9e (patch)
tree05ff7514ca5a55ed487d62b6ef7c7963ec8dd59b /pyasn1/codec
parent24c90b816328caf91cc250c362fcb586ad1fbed6 (diff)
downloadpyasn1-git-ec92d75361a5e2f41b28b9f87007f5503986ce9e.tar.gz
WIP: SetOf/SequenceOf field type container first introduced
Diffstat (limited to 'pyasn1/codec')
-rw-r--r--pyasn1/codec/ber/decoder.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/pyasn1/codec/ber/decoder.py b/pyasn1/codec/ber/decoder.py
index 9e84eae..0aeb423 100644
--- a/pyasn1/codec/ber/decoder.py
+++ b/pyasn1/codec/ber/decoder.py
@@ -533,11 +533,10 @@ class SetDecoder(SequenceAndSetDecoderBase):
return asn1Object.componentTagMap
def _getComponentPositionByType(self, asn1Object, tagSet, idx):
- nextIdx = asn1Object.getComponentPositionByType(tagSet)
- if nextIdx is None:
- return idx
+ if asn1Object.componentType:
+ return asn1Object.componentType.getPositionByType(tagSet)
else:
- return nextIdx
+ return idx
class SetOfDecoder(SequenceOfDecoder):