mirror of
https://github.com/reactos/reactos.git
synced 2024-06-27 16:31:30 +00:00
[LWIP] dhcp.c: Cherry-pick lwIP 32aa9a4. CORE-8978
- Fix a while() check order.
This commit is contained in:
parent
fda24da872
commit
63775c3215
|
@ -1377,7 +1377,7 @@ again:
|
|||
offset_max = options_idx_max;
|
||||
options = (u8_t*)q->payload;
|
||||
/* at least 1 byte to read and no end marker, then at least 3 bytes to read? */
|
||||
while((q != NULL) && (options[offset] != DHCP_OPTION_END) && (offset < offset_max)) {
|
||||
while ((q != NULL) && (offset < offset_max) && (options[offset] != DHCP_OPTION_END)) {
|
||||
u8_t op = options[offset];
|
||||
u8_t len;
|
||||
u8_t decode_len = 0;
|
||||
|
|
Loading…
Reference in a new issue