X-Git-Url: http://www.git.cypherpunks.ru/?p=pyderasn.git;a=blobdiff_plain;f=pyderasn.py;h=099e8a436c21bf18412651ab6563958856feed16;hp=c8e29e3d767249c9de62be911540c9c3cf9e7992;hb=5b15d6d7bdfe67388f01fd2ab1638f8c02c1294b;hpb=05f030d41edef47ea94f68b9e770590d96e743af diff --git a/pyderasn.py b/pyderasn.py index c8e29e3..099e8a4 100755 --- a/pyderasn.py +++ b/pyderasn.py @@ -4313,8 +4313,8 @@ class Sequence(Obj): values = {} for name, spec in self.specs.items(): if spec.optional and ( - (lenindef and v[:EOC_LEN].tobytes() == EOC) or - len(v) == 0 + (lenindef and v[:EOC_LEN].tobytes() == EOC) or + len(v) == 0 ): continue sub_decode_path = decode_path + (name,)