Skip to content
Snippets Groups Projects
Commit 0e54b950 authored by Phil's avatar Phil
Browse files

Fixed infinite recursion in ASN1 BER codec

parent 254897e9
No related branches found
No related tags found
No related merge requests found
...@@ -233,7 +233,7 @@ class BERcodec_NULL(BERcodec_INTEGER): ...@@ -233,7 +233,7 @@ class BERcodec_NULL(BERcodec_INTEGER):
if i == 0: if i == 0:
return chr(cls.tag)+"\0" return chr(cls.tag)+"\0"
else: else:
return super(cls,cls).enc(i) return BERcodec_INTEGER.enc(i)
class BERcodec_SEP(BERcodec_NULL): class BERcodec_SEP(BERcodec_NULL):
tag = ASN1_Class_UNIVERSAL.SEP tag = ASN1_Class_UNIVERSAL.SEP
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment