Commit 5f72884f authored by Jan Kadlec's avatar Jan Kadlec

new_node: Removed unused parameters + fix new zone copy.

 - wrong if, no copy of NSEC3 nodes was made -> leaks.
parent 4bade43a
......@@ -885,9 +885,7 @@ static int xfrin_apply_add(knot_zone_contents_t *contents,
/*----------------------------------------------------------------------------*/
static int xfrin_apply_replace_soa(knot_zone_contents_t *contents,
knot_changeset_t *chset,
list_t *old_rrs,
list_t *new_rrs)
knot_changeset_t *chset)
{
dbg_xfrin("Replacing SOA record.\n");
knot_node_t *node = contents->apex;
......@@ -957,7 +955,7 @@ static int xfrin_apply_changeset(list_t *old_rrs, list_t *new_rrs,
return ret;
}
return xfrin_apply_replace_soa(contents, chset, old_rrs, new_rrs);
return xfrin_apply_replace_soa(contents, chset);
}
/*----------------------------------------------------------------------------*/
......
......@@ -1351,7 +1351,7 @@ int knot_zone_contents_shallow_copy(const knot_zone_contents_t *from,
return ret;
}
if (contents->nsec3_nodes) {
if (from->nsec3_nodes) {
ret = recreate_nsec3_tree(from, contents);
if (ret != KNOT_EOK) {
knot_zone_tree_free(&contents->nodes);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment