Skip to content

Commit

Permalink
fix isotpscan bug from baarse
Browse files Browse the repository at this point in the history
  • Loading branch information
polybassa committed May 1, 2023
1 parent b33e1cd commit e37ee78
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scapy/contrib/isotp/isotp_scanner.py
Original file line number Diff line number Diff line change
Expand Up @@ -246,6 +246,7 @@ def scan_extended(sock, # type: SuperSocket
"""
return_values = dict() # type: Dict[int, Tuple[Packet, int]]
scan_block_size = scan_block_size or 1
r = list(extended_scan_range)

for value in scan_range:
if noise_ids and value in noise_ids:
Expand All @@ -254,7 +255,6 @@ def scan_extended(sock, # type: SuperSocket
pkt = get_isotp_packet(
value, extended=True, extended_can_id=extended_can_id)
id_list = [] # type: List[int]
r = list(extended_scan_range)
for ext_isotp_id in range(r[0], r[-1], scan_block_size):
if stop_event is not None and stop_event.is_set():
break
Expand Down

0 comments on commit e37ee78

Please sign in to comment.