Skip to content

Commit

Permalink
fix check when parsing BER struct
Browse files Browse the repository at this point in the history
  • Loading branch information
p1-bmu committed Aug 30, 2021
1 parent 9c0003c commit 65f813c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion card/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ def BERTLV_parser(bytelist):
returns a list of 3-Tuples containing BERTLV records
'''
ret = []
while len(bytelist) > 0:
while len(bytelist) > 1:
T, L, V = first_BERTLV_parser(bytelist)
#if T == 0xFF:
# break # padding bytes
Expand Down

0 comments on commit 65f813c

Please sign in to comment.