Skip to content
Snippets Groups Projects
Commit 415ecd60 authored by Libor Peltan's avatar Libor Peltan Committed by Daniel Salzman
Browse files

bugfix: new_cont -> max TTL == 0 during roll-over

parent 442633ae
No related branches found
No related tags found
No related merge requests found
Pipeline #63792 passed with warnings
......@@ -207,6 +207,7 @@ zone_contents_t *zone_contents_new(const knot_dname_t *apex_name, bool use_binod
goto cleanup;
}
contents->apex->flags |= NODE_FLAGS_APEX;
contents->max_ttl = UINT32_MAX;
return contents;
......@@ -498,6 +499,7 @@ int zone_contents_shallow_copy(const zone_contents_t *from, zone_contents_t **to
}
contents->adds_tree = from->adds_tree;
contents->size = from->size;
contents->max_ttl = from->max_ttl;
*to = contents;
return KNOT_EOK;
......
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