Better job with domain for DHCPv6 information-request.

This commit is contained in:
Simon Kelley
2013-07-27 15:11:44 +01:00
parent f7a40ec650
commit 6bd109aa2f
2 changed files with 10 additions and 1 deletions

View File

@@ -224,7 +224,7 @@ char *get_domain6(struct in6_addr *addr)
{
struct cond_domain *c;
if ((c = search_domain6(addr, daemon->cond_domain)))
if (addr && (c = search_domain6(addr, daemon->cond_domain)))
return c->domain;
return daemon->domain_suffix;