Skip to content

Commit

Permalink
[parser] Keybag: Fix parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
m1stadev committed Aug 22, 2023
1 parent fef8199 commit 384f09f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pyimg4/_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -1074,7 +1074,7 @@ def __repr__(self) -> str:
def _parse(self) -> None:
self._decoder.start(self._data)

if self._decoder.read()[0].nr != asn1.Numbers.Integer:
if self._decoder.peek().nr != asn1.Numbers.Integer:
raise UnexpectedTagError(self._decoder.peek(), asn1.Numbers.Integer)

self.type = KeybagType(self._decoder.read()[1])
Expand Down

0 comments on commit 384f09f

Please sign in to comment.