mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2024-07-04 20:08:57 +00:00
Fixed bug #29970: DHCP endian issue parsing option responses
This commit is contained in:
parent
5ab40f016d
commit
2427917db8
|
@ -220,6 +220,9 @@ HISTORY
|
||||||
|
|
||||||
++ Bugfixes:
|
++ Bugfixes:
|
||||||
|
|
||||||
|
2010-06-15: Simon Goldschmidt
|
||||||
|
* dhcp.c: Fixed bug #29970: DHCP endian issue parsing option responses
|
||||||
|
|
||||||
2010-06-14: Simon Goldschmidt
|
2010-06-14: Simon Goldschmidt
|
||||||
* autoip.c: Fixed bug #30039: AutoIP does not reuse previous addresses
|
* autoip.c: Fixed bug #30039: AutoIP does not reuse previous addresses
|
||||||
|
|
||||||
|
|
|
@ -1434,9 +1434,10 @@ decode_next:
|
||||||
value = ntohl(value);
|
value = ntohl(value);
|
||||||
} else {
|
} else {
|
||||||
LWIP_ASSERT("invalid decode_len", decode_len == 1);
|
LWIP_ASSERT("invalid decode_len", decode_len == 1);
|
||||||
|
value = ((u8_t*)value)[0];
|
||||||
}
|
}
|
||||||
dhcp_got_option(dhcp, decode_idx);
|
dhcp_got_option(dhcp, decode_idx);
|
||||||
dhcp_set_option_value(dhcp, decode_idx, value);
|
dhcp_set_option_value(dhcp, decode_idx, value);
|
||||||
}
|
}
|
||||||
if (offset >= q->len) {
|
if (offset >= q->len) {
|
||||||
offset -= q->len;
|
offset -= q->len;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user