]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
- more robust cachedump rrset routine.
authorWouter Wijngaards <wouter@nlnetlabs.nl>
Wed, 21 Feb 2018 15:25:19 +0000 (15:25 +0000)
committerWouter Wijngaards <wouter@nlnetlabs.nl>
Wed, 21 Feb 2018 15:25:19 +0000 (15:25 +0000)
git-svn-id: file:///svn/unbound/trunk@4549 be551aaa-1e26-0410-a405-d3ace91eadb9

daemon/cachedump.c
doc/Changelog

index 8992e6cb8f3d23e8503e88111763368d98f56ca7..81061870b58188b5cd177a422928bc27025c34e7 100644 (file)
@@ -79,6 +79,7 @@ dump_rrset(SSL* ssl, struct ub_packed_rrset_key* k,
        size_t i;
        /* rd lock held by caller */
        if(!k || !d) return 1;
+       if(k->id == 0) return 1; /* deleted */
        if(d->ttl < now) return 1; /* expired */
 
        /* meta line */
index 0521608b38dc21d13bbc6e3110d7dafdfb39b291..c1d822fc91ab6d847279eee781d3546835abf8fc 100644 (file)
@@ -4,6 +4,7 @@
        - Fix validation for CNAME loops.  When it detects a cname loop,
          by finding the cname, cname in the existing list, it returns
          the partial result with the validation result up to then.
+       - more robust cachedump rrset routine.
 
 19 February 2018: Wouter
        - Fix #3505: Documentation for default local zones references