Skip to content
Snippets Groups Projects
Commit a1e2975e authored by Marek Vavruša's avatar Marek Vavruša
Browse files

Merge branch 'fix-warnings' of /git/repositories/labs/knot

parents 907bef70 591cf88e
No related branches found
No related tags found
No related merge requests found
......@@ -2509,6 +2509,7 @@ static int zones_dnssec_ev(event_t *event, bool force)
int ret = KNOT_EOK;
char *msgpref = NULL;
uint32_t expires_at = 0;
knot_changesets_t *chs = knot_changesets_create();
if (chs == NULL) {
......@@ -2536,7 +2537,6 @@ static int zones_dnssec_ev(event_t *event, bool force)
log_zone_info("%s Signing zone...\n", msgpref);
}
uint32_t expires_at = 0;
if (force) {
ret = knot_dnssec_zone_sign_force(zone, ch, &expires_at);
} else {
......@@ -2567,9 +2567,11 @@ done:
evsched_event_free(event->parent, event);
zd->dnssec_timer = NULL;
// Schedule next signing
ret = zones_schedule_dnssec(zone, expiration_to_relative(expires_at),
false);
if (expires_at != 0) {
ret = zones_schedule_dnssec(zone,
expiration_to_relative(expires_at),
false);
}
rcu_read_unlock();
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