Skip to content
Snippets Groups Projects
Commit b66cf651 authored by Libor Peltan's avatar Libor Peltan
Browse files

bugfix: skip_crypto not effective after FULL update

parent 4036bcff
No related branches found
No related tags found
1 merge request!1128bugfix: skip_crypto not effective after FULL update
Pipeline #63052 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