Fix wrong fallback address in DHCPv6

This commit is contained in:
Simon Kelley
2012-02-19 20:53:20 +00:00
parent 948a0b6e81
commit 270dc2e199

View File

@@ -244,7 +244,7 @@ static int complete_context6(struct in6_addr *local, int prefix,
if we have no matching dhcp-context, because we're only if we have no matching dhcp-context, because we're only
allocating on remote subnets via relays. This allocating on remote subnets via relays. This
is used as a default for the DNS server option. */ is used as a default for the DNS server option. */
memcpy(&param->fallback, &local, IN6ADDRSZ); param->fallback = *local;
for (context = daemon->dhcp6; context; context = context->next) for (context = daemon->dhcp6; context; context = context->next)
{ {