]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
free unsupported trust anchors.
authorWouter Wijngaards <wouter@nlnetlabs.nl>
Wed, 15 Feb 2012 14:53:45 +0000 (14:53 +0000)
committerWouter Wijngaards <wouter@nlnetlabs.nl>
Wed, 15 Feb 2012 14:53:45 +0000 (14:53 +0000)
git-svn-id: file:///svn/unbound/trunk@2624 be551aaa-1e26-0410-a405-d3ace91eadb9

validator/val_anchor.c

index 909afd62bb9df6b5a5c870e42a148ea919dcf88d..b9c268486e7f585400233d979c4311a7b3fd0811 100644 (file)
@@ -1032,7 +1032,7 @@ anchors_assemble_rrsets(struct val_anchors* anchors)
                                " upgrade unbound and openssl)", b);
                        (void)rbtree_delete(anchors->tree, &ta->node);
                        lock_basic_unlock(&ta->lock);
-                       lock_basic_destroy(&ta->lock);
+                       anchors_delfunc(&ta->node, NULL);
                        ta = next;
                        continue;
                }