2
0
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:
Jarrod Johnson 2020-03-11 15:43:34 -04:00
parent 0f67f5c382
commit 57ff9808c4

View File

@ -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: