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

This commit is contained in:
Simon Kelley committed 2012-03-07 10:15:57 +00:00
1 parent 801ca9a7b7
commit f444cddbaf
1 file changed
+1 -1
+1 -1
View File
@@ -410,7 +410,7 @@ void lease_update_dns(void)
#ifdef HAVE_DHCP6
if (lease->flags & (LEASE_TA | LEASE_NA))
prot = AF_INET6;
else
else if (lease->hostname || lease->fqdn)
{
struct subnet_map *map;
for (map = subnets; map; map = map->next)