Commit 8096fde6 authored by Lubos Slovak's avatar Lubos Slovak

Fixed IXFR rollback.

- If there was only one RDATA in the new RRSet, it wasn't freed.

refs #1952 @20m
parent d86c5177
......@@ -2003,7 +2003,7 @@ dbg_xfrin_exec_detail(
ret = knot_rrset_merge((void **)rrset, (void **)&add);
if (ret != KNOT_EOK) {
dbg_xfrin("Failed to merge changeset RRSet.\n");
return KNOT_ERROR;
return ret;
}
dbg_xfrin_detail("Merge returned: %d\n", ret);
knot_rrset_dump(*rrset, 1);
......@@ -2401,9 +2401,9 @@ void xfrin_rollback_update(knot_zone_contents_t *old_contents,
knot_rdata_t *rdata = (*changes)->new_rdata[i];
knot_rdata_t *rdata_next = NULL;
while (rdata != NULL && rdata->next !=
while (rdata != NULL && rdata_next !=
(*changes)->new_rdata[i]) {
assert(rdata->next != rdata);
//assert(rdata->next != rdata);
rdata_next = rdata->next;
dbg_xfrin_detail(" Deleting RDATA: %p\n",
rdata);
......
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