Skip to content

Commit

Permalink
q-dev: fix loop
Browse files Browse the repository at this point in the history
  • Loading branch information
piotrbartman committed Jun 21, 2024
1 parent 29d32c5 commit f86dbf6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions qubesusbproxy/core3ext.py
Original file line number Diff line number Diff line change
Expand Up @@ -299,8 +299,8 @@ def _sanitize(
break
hex_code = untrusted_device_desc[i - 1: i + 1]
try:
for i in range(2):
if hex_code[i] not in b'0123456789abcdefABCDEF':
for j in range(2):
if hex_code[j] not in b'0123456789abcdefABCDEF':
raise ValueError()
hex_value = int(hex_code, 16)
c = chr(hex_value)
Expand Down

0 comments on commit f86dbf6

Please sign in to comment.