From: Libor Peltan Date: Mon, 16 Jun 2025 09:59:23 +0000 (+0200) Subject: zone-update: bugfix: correctly revert adjustments to otherwise unaffected nodes X-Git-Tag: v3.5.0~38^2~8 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=10f8a729a7e02abb696fdde6e58935d8e12818e1;p=thirdparty%2Fknot-dns.git zone-update: bugfix: correctly revert adjustments to otherwise unaffected nodes --- diff --git a/src/knot/updates/apply.c b/src/knot/updates/apply.c index 41ac58fb9f..0942616564 100644 --- a/src/knot/updates/apply.c +++ b/src/knot/updates/apply.c @@ -333,12 +333,16 @@ void apply_rollback(apply_ctx_t *ctx) return; } + if (ctx->adjust_ptrs != NULL) { + ctx->adjust_ptrs->flags ^= ZONE_TREE_BINO_SECOND; + } if (ctx->node_ptrs != NULL) { ctx->node_ptrs->flags ^= ZONE_TREE_BINO_SECOND; } if (ctx->nsec3_ptrs != NULL) { ctx->nsec3_ptrs->flags ^= ZONE_TREE_BINO_SECOND; } + zone_trees_unify_binodes(ctx->adjust_ptrs, NULL, false); zone_trees_unify_binodes(ctx->node_ptrs, ctx->nsec3_ptrs, true); zone_tree_free(&ctx->node_ptrs);