mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2025-01-16 07:09:58 +00:00
Fixed copying multiple IP addresses from options (e.g. multiple DNS servers) - the amount copied was correct, but the value copied was always the first.
This commit is contained in:
parent
6af20340dd
commit
91d70a3364
@ -1430,6 +1430,7 @@ decode_next:
|
|||||||
dhcp_got_option(dhcp, decode_idx);
|
dhcp_got_option(dhcp, decode_idx);
|
||||||
dhcp_set_option_value(dhcp, decode_idx, htonl(value));
|
dhcp_set_option_value(dhcp, decode_idx, htonl(value));
|
||||||
decode_len -= 4;
|
decode_len -= 4;
|
||||||
|
val_offset += 4;
|
||||||
decode_idx++;
|
decode_idx++;
|
||||||
goto decode_next;
|
goto decode_next;
|
||||||
} else if (decode_len == 4) {
|
} else if (decode_len == 4) {
|
||||||
|
Loading…
Reference in New Issue
Block a user