Skip to content

Commit

Permalink
dhcp: convert options from bytearray to bytes before unpacking (#1858)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexisbalbachan authored Dec 16, 2024
1 parent af91d61 commit 67e1924
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion impacket/dhcp.py
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ def unpackOptions(self, options):
# size = self.calcUnpackSize(format, options[i+1:])
size = options[i+1]
# print i, name, format, size
value = self.unpack(format, options[i+2:i+2+size])
value = self.unpack(format, bytes(options[i+2:i+2+size]))
answer.append((name, value))
i += 2+size

Expand Down

0 comments on commit 67e1924

Please sign in to comment.