From: Wouter Wijngaards Date: Wed, 21 Feb 2018 15:25:19 +0000 (+0000) Subject: - more robust cachedump rrset routine. X-Git-Tag: release-1.7.0rc1~12 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=cd955fa34d33acd253c8dbe636a719fac5b2dae9;p=thirdparty%2Funbound.git - more robust cachedump rrset routine. git-svn-id: file:///svn/unbound/trunk@4549 be551aaa-1e26-0410-a405-d3ace91eadb9 --- diff --git a/daemon/cachedump.c b/daemon/cachedump.c index 8992e6cb8..81061870b 100644 --- a/daemon/cachedump.c +++ b/daemon/cachedump.c @@ -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 */ diff --git a/doc/Changelog b/doc/Changelog index 0521608b3..c1d822fc9 100644 --- a/doc/Changelog +++ b/doc/Changelog @@ -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