Fix periodic loop

This commit is contained in:
Simon Kelley
2012-12-16 21:45:16 +00:00
parent 1f776932a1
commit 7558ecd9ac
2 changed files with 9 additions and 6 deletions

View File

@@ -596,7 +596,13 @@ void dhcp_construct_contexts(time_t now)
}
if (param.newone)
lease_update_file(now);
{
if (daemon->dhcp || daemon->doing_dhcp6)
lease_update_file(now);
else
/* Not doing DHCP, so no lease system, manage alarms for ra only */
send_alarm(periodic_ra(now), now);
}
}
static int join_multicast_worker(struct in6_addr *local, int prefix,