Commit a0d0f377 authored by Daniel Salzman's avatar Daniel Salzman

ctl: invalidate aborted zone transaction

parent cc7575ca
......@@ -339,6 +339,11 @@ static int zone_txn_commit(zone_t *zone, ctl_args_t *args)
int ret = zone_update_commit(conf(), zone->control_update);
if (ret != KNOT_EOK) {
/* Invalidate the transaction if aborted. */
if (zone->control_update->zone == NULL) {
zone->control_update = NULL;
return ret;
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