]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
Fixup memleak in unsupported algorithm checks at startup.
authorWouter Wijngaards <wouter@nlnetlabs.nl>
Tue, 25 Aug 2009 06:51:00 +0000 (06:51 +0000)
committerWouter Wijngaards <wouter@nlnetlabs.nl>
Tue, 25 Aug 2009 06:51:00 +0000 (06:51 +0000)
git-svn-id: file:///svn/unbound/trunk@1774 be551aaa-1e26-0410-a405-d3ace91eadb9

doc/Changelog
testdata/03-testbound.tpkg
validator/val_anchor.c

index 601e1d2f7a29f882043bb7f6a84756dd0471b684..5899b510ed49e729ab47ff239256de257e4cf0b0 100644 (file)
@@ -1,3 +1,6 @@
+25 August 2009: Wouter
+       - fixup memleak in trust anchor unsupported algorithm check.
+
 24 August 2009: Wouter
        - cleaner memory allocation on exit. autotrust test routines.
        - free all memory on program exit, fix for ssl and flex.
index 883a6ff070834717e10bda6ac38982a7a890684c..79803d5ad692069717aaea9279530054ac759bfe 100644 (file)
Binary files a/testdata/03-testbound.tpkg and b/testdata/03-testbound.tpkg differ
index 5b3f1b6d0512e4c30d124b395b34cbd70c1a0488..e7517f8fe09f2db20e3fe5c5c78f23de01c6a6c7 100644 (file)
@@ -970,6 +970,10 @@ anchors_assemble_rrsets(struct val_anchors* anchors)
                                " the anchor is ignored (check if you need to"
                                " upgrade unbound and openssl)", b);
                        (void)rbtree_delete(anchors->tree, &ta->node);
+                       lock_basic_unlock(&ta->lock);
+                       lock_basic_destroy(&ta->lock);
+                       ta = next;
+                       continue;
                }
                lock_basic_unlock(&ta->lock);
                ta = next;