diff options
author | Steven Barth <steven@midlink.org> | 2015-04-13 14:48:52 +0200 |
---|---|---|
committer | Steven Barth <steven@midlink.org> | 2015-04-13 14:48:52 +0200 |
commit | 19c64c524614ea7fdbcedcc50d6980f096ccadb9 (patch) | |
tree | da021e48a13f9ff1284dfc52194ea92b000719ae /src/dhcpv6.c | |
parent | e1540ec55e014e538a92a588675e4156a1bddabe (diff) | |
download | odhcp6c-19c64c524614ea7fdbcedcc50d6980f096ccadb9.tar.gz |
Improve handling of DNS search domains
Signed-off-by: Steven Barth <steven@midlink.org>
Diffstat (limited to 'src/dhcpv6.c')
-rw-r--r-- | src/dhcpv6.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/dhcpv6.c b/src/dhcpv6.c index 000d999..eeb669b 100644 --- a/src/dhcpv6.c +++ b/src/dhcpv6.c @@ -995,7 +995,6 @@ static int dhcpv6_handle_reply(enum dhcpv6_msg orig, _unused const int rc, odhcp6c_add_state(STATE_DNS, odata, olen); } else if (otype == DHCPV6_OPT_DNS_DOMAIN) { odhcp6c_add_state(STATE_SEARCH, odata, olen); - passthru = false; } else if (otype == DHCPV6_OPT_SNTP_SERVERS) { if (olen % 16 == 0) odhcp6c_add_state(STATE_SNTP_IP, odata, olen); @@ -1142,7 +1141,7 @@ static int dhcpv6_parse_ia(void *opt, void *end) // Update address IA dhcpv6_for_each_option(&ia_hdr[1], end, otype, olen, odata) { - struct odhcp6c_entry entry = {IN6ADDR_ANY_INIT, 0, 0, + struct odhcp6c_entry entry = {IN6ADDR_ANY_INIT, 0, 0, 0, IN6ADDR_ANY_INIT, 0, 0, 0, 0, 0}; entry.iaid = ia_hdr->iaid; |