Skip to content
Snippets Groups Projects
Commit 985da870 authored by Jan Kadlec's avatar Jan Kadlec
Browse files

zone-events: post DDNS DNSSEC event planning

parent 888fce5e
No related branches found
No related tags found
No related merge requests found
......@@ -133,7 +133,11 @@ static int sign_update(zone_t *zone, const zone_contents_t *old_contents,
free(sec_chs);
// Plan next zone resign.
zone_events_schedule(zone, ZONE_EVENT_DNSSEC, refresh_at);
const time_t resign_time = zone_events_get_time(zone, ZONE_EVENT_DNSSEC);
assert(resign_time > ZONE_EVENT_NOW);
if (time(NULL) + refresh_at < resign_time) {
zone_events_schedule(zone, ZONE_EVENT_DNSSEC, refresh_at);
}
return ret;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment