Skip to content
Snippets Groups Projects
Commit d7ecf525 authored by Daniel Salzman's avatar Daniel Salzman
Browse files

Merge branch 'fix_skip_crypto' into 'master'

bugfix: skip_crypto not effective after FULL update

See merge request !1128
parents 4036bcff b66cf651
No related branches found
No related tags found
1 merge request!1128bugfix: skip_crypto not effective after FULL update
Pipeline #63094 passed
......@@ -671,9 +671,10 @@ int knot_zone_sign(zone_update_t *update,
return result;
}
result = zone_tree_apply(update->a_ctx->node_ptrs, set_signed, NULL);
bool whole = !(update->flags & UPDATE_INCREMENTAL);
result = zone_tree_apply(whole ? update->new_cont->nodes : update->a_ctx->node_ptrs, set_signed, NULL);
if (result == KNOT_EOK) {
result = zone_tree_apply(update->a_ctx->nsec3_ptrs, set_signed, NULL);
result = zone_tree_apply(whole ? update->new_cont->nsec3_nodes : update->a_ctx->nsec3_ptrs, set_signed, NULL);
}
*expire_at = knot_time_min(normal_expire, nsec3_expire);
......
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