From: Steven Barth Date: Fri, 18 Jan 2013 08:20:19 +0000 (+0100) Subject: Fix DNS-server parsing with more than one server X-Git-Tag: debian/1.1+git20160131-1~199 X-Git-Url: https://git.decadent.org.uk/gitweb/?p=odhcp6c.git;a=commitdiff_plain;h=673d079b108815d5eff0547910d3d48189c0a114 Fix DNS-server parsing with more than one server --- diff --git a/src/dhcpv6.c b/src/dhcpv6.c index a3d4223..93433d4 100644 --- a/src/dhcpv6.c +++ b/src/dhcpv6.c @@ -675,7 +675,7 @@ static int dhcpv6_handle_reply(_unused enum dhcpv6_msg orig, t3 = n; } else if (otype == DHCPV6_OPT_DNS_SERVERS) { - if (olen == 16) + if (olen % 16 == 0) odhcp6c_add_state(STATE_DNS, odata, olen); } else if (otype == DHCPV6_OPT_DNS_DOMAIN) { odhcp6c_add_state(STATE_SEARCH, odata, olen);