Don't waste time calculating EUI-64 when a lease doesn't have a name.

This commit is contained in:
Simon Kelley
2012-03-07 10:15:57 +00:00
parent 801ca9a7b7
commit f444cddbaf

View File

@@ -410,7 +410,7 @@ void lease_update_dns(void)
#ifdef HAVE_DHCP6 #ifdef HAVE_DHCP6
if (lease->flags & (LEASE_TA | LEASE_NA)) if (lease->flags & (LEASE_TA | LEASE_NA))
prot = AF_INET6; prot = AF_INET6;
else else if (lease->hostname || lease->fqdn)
{ {
struct subnet_map *map; struct subnet_map *map;
for (map = subnets; map; map = map->next) for (map = subnets; map; map = map->next)