Skip to content

Commit 67e1924

Browse files
dhcp: convert options from bytearray to bytes before unpacking (#1858)
1 parent af91d61 commit 67e1924

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

impacket/dhcp.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ def unpackOptions(self, options):
178178
# size = self.calcUnpackSize(format, options[i+1:])
179179
size = options[i+1]
180180
# print i, name, format, size
181-
value = self.unpack(format, options[i+2:i+2+size])
181+
value = self.unpack(format, bytes(options[i+2:i+2+size]))
182182
answer.append((name, value))
183183
i += 2+size
184184

0 commit comments

Comments
 (0)