Commit e29ed133 authored by Lubos Slovak's avatar Lubos Slovak

Fixed double children count decrement.

parent 0b434fa6
......@@ -2574,6 +2574,10 @@ static void xfrin_mark_empty(knot_node_t *node, void *data)
if (node->parent != NULL) {
assert(node->parent->children > 0);
--node->parent->children;
if (node->parent->wildcard_child == node) {
node->parent->wildcard_child = NULL;
}
node->parent = NULL;
}
}
}
......
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