This commit is contained in:
Simon Kelley
2015-09-26 21:40:45 +01:00
parent 77607cbea0
commit 27b78d990b

View File

@@ -1324,8 +1324,7 @@ static struct dhcp_netid *add_options(struct state *state, int do_refresh)
if (opt_cfg->opt == OPTION6_DNS_SERVER) if (opt_cfg->opt == OPTION6_DNS_SERVER)
done_dns = 1; done_dns = 1;
/* Empty DNS_SERVER option will not set DHOPT_ADDR6 */ if (opt_cfg->flags & DHOPT_ADDR6)
if ((opt_cfg->flags & DHOPT_ADDR6) || opt_cfg->opt == OPTION6_DNS_SERVER)
{ {
int len, j; int len, j;
struct in6_addr *a; struct in6_addr *a;