]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
- Added assert on rrset cache correctness.
authorWouter Wijngaards <wouter@nlnetlabs.nl>
Fri, 20 Nov 2015 08:08:11 +0000 (08:08 +0000)
committerWouter Wijngaards <wouter@nlnetlabs.nl>
Fri, 20 Nov 2015 08:08:11 +0000 (08:08 +0000)
git-svn-id: file:///svn/unbound/trunk@3545 be551aaa-1e26-0410-a405-d3ace91eadb9

doc/Changelog
services/cache/rrset.c

index 9ef2710ab99fdc71ce1a4ec1f9134186ce53534a..dee657e87d7e62036d5a605524ccd6bf1d495576 100644 (file)
@@ -1,3 +1,6 @@
+20 November 2015: Wouter
+       - Added assert on rrset cache correctness.
+
 18 November 2015: Wouter
        - newer acx_nlnetlabs.m4.
        - spelling fixes from Igor Sobrado Delgado.
index 2c855295387136636c2641f11634a364b83980a3..2f6a1b50671254009cc836b1c724a9b0f85bb45d 100644 (file)
@@ -190,6 +190,7 @@ rrset_cache_update(struct rrset_cache* r, struct rrset_ref* ref,
        uint16_t rrset_type = ntohs(k->rk.type);
        int equal = 0;
        log_assert(ref->id != 0 && k->id != 0);
+       log_assert(k->rk.dname != NULL);
        /* looks up item with a readlock - no editing! */
        if((e=slabhash_lookup(&r->table, h, k, 0)) != 0) {
                /* return id and key as they will be used in the cache