Update TTL when overriding a node contents.
git-svn-id: file:///svn/unbound/branches/edns-subnet@3425
be551aaa-1e26-0410-a405-
d3ace91eadb9
static void
lru_update(struct addrtree *tree, struct addrnode *node)
{
+ if (tree->root == node) return;
lru_pop(tree, node);
lru_push(tree, node);
}
if (depth == sourcemask) {
/* update this node's scope and data */
clean_node(tree, node);
+ node->ttl = ttl;
node->elem = elem;
node->scope = scope;
tree->size_bytes += tree->sizefunc(elem);