From 91d70a3364a7077408ddd7ad35b57e274c168918 Mon Sep 17 00:00:00 2001 From: goldsimon Date: Tue, 9 Feb 2010 11:40:46 +0000 Subject: [PATCH] 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. --- src/core/dhcp.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/core/dhcp.c b/src/core/dhcp.c index be1ba5c4..648f3b23 100644 --- a/src/core/dhcp.c +++ b/src/core/dhcp.c @@ -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) {