mirror of
https://github.com/xcat2/confluent.git
synced 2024-11-26 11:30:23 +00:00
Fix infinite loop in DHCP parsing
Accidentally failed to actually traverse the data.
This commit is contained in:
parent
0f67f5c382
commit
57ff9808c4
@ -135,6 +135,7 @@ def opts_to_dict(rq, optidx):
|
||||
optnum = rq[optidx]
|
||||
optlen = rq[optidx + 1]
|
||||
reqdict[optnum] = rq[optidx + 2:optidx + 2 + optlen]
|
||||
optidx += optlen + 2
|
||||
except IndexError:
|
||||
pass
|
||||
if reqdict.get(53, [0])[0] != 1:
|
||||
|
Loading…
Reference in New Issue
Block a user