Skip to content
Snippets Groups Projects
Commit a3bd6de5 authored by Jan Kadlec's avatar Jan Kadlec
Browse files

Proper zone cleanup after failed XFR.

parent 8294954f
No related branches found
No related tags found
No related merge requests found
......@@ -231,10 +231,9 @@ static void xfr_task_cleanup(knot_ns_xfr_t *rq)
if (rq->flags & XFR_FLAG_AXFR_FINISHED) {
knot_zone_contents_deep_free(&rq->new_contents);
} else if (rq->data) {
// xfrin_constructed_zone_t *constr_zone = rq->data;
// knot_zone_contents_deep_free(&(constr_zone->contents));
// free(rq->data);
// rq->data = NULL;
knot_zone_contents_t *zone = rq->data;
knot_zone_contents_deep_free(&zone);
rq->data = NULL;
}
} else if (rq->type == XFR_TYPE_IIN) {
knot_changesets_t *chs = (knot_changesets_t *)rq->data;
......
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