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:
goldsimon 2010-02-09 11:40:46 +00:00
parent 6af20340dd
commit 91d70a3364

View File

@ -1430,6 +1430,7 @@ decode_next:
dhcp_got_option(dhcp, decode_idx);
dhcp_set_option_value(dhcp, decode_idx, htonl(value));
decode_len -= 4;
val_offset += 4;
decode_idx++;
goto decode_next;
} else if (decode_len == 4) {