]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
- Fix crash in previous private address fixup of 22 March.
authorWouter Wijngaards <wouter@nlnetlabs.nl>
Tue, 9 Apr 2013 07:38:24 +0000 (07:38 +0000)
committerWouter Wijngaards <wouter@nlnetlabs.nl>
Tue, 9 Apr 2013 07:38:24 +0000 (07:38 +0000)
git-svn-id: file:///svn/unbound/trunk@2880 be551aaa-1e26-0410-a405-d3ace91eadb9

doc/Changelog
iterator/iter_priv.c
testdata/iter_privaddr.rpl

index 130aea84e37bcd8bee73cb33d6bc2d19f42c5d43..0a6f6d2ac4e4e41d3896d2c9d6d653ed942b1a41 100644 (file)
@@ -1,5 +1,6 @@
 9 April 2013: Wouter
        - updated iana portlist.
+       - Fix crash in previous private address fixup of 22 March.
 
 28 March 2013: Wouter
        - Make reverse zones easier by documenting the nodefault statements
index 8f60489c3030aadd8e63324be8d2162e1b4f18b9..51f3e2ea2ffb20cafb4dc75020a80d8a451be0e9 100644 (file)
@@ -225,7 +225,8 @@ remove_rr(const char* str, ldns_buffer* pkt, struct rrset_parse* rrset,
                rrset->rr_last = prev;
        rrset->rr_count --;
        rrset->size -= (*rr)->size;
-       (*rr) = (*rr)->next;
+       /* rr struct still exists, but is unlinked, so that in the for loop
+        * the rr->next works fine to continue. */
        return rrset->rr_count == 0;
 }
 
index 4b1780874fa3ddd117a6d79eaa0b6c4ad4ac0f30..d0f63c9ab881f1a9f1d6c953be572716cd4f421d 100644 (file)
@@ -173,6 +173,7 @@ toss.example.com. IN A
 SECTION ANSWER
 toss.example.com. IN A 10.20.30.40
 toss.example.com. IN A 1.2.3.4
+toss.example.com. IN A 10.20.30.41
 SECTION AUTHORITY
 example.com.   IN NS   ns.example.com.
 SECTION ADDITIONAL