]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
- Fix #677 Fix CNAME corresponding to a DNAME was checked incorrectly
authorWouter Wijngaards <wouter@nlnetlabs.nl>
Mon, 22 Jun 2015 09:23:43 +0000 (09:23 +0000)
committerWouter Wijngaards <wouter@nlnetlabs.nl>
Mon, 22 Jun 2015 09:23:43 +0000 (09:23 +0000)
  and was therefore always synthesized (thanks to Valentin Dietrich).

git-svn-id: file:///svn/unbound/trunk@3434 be551aaa-1e26-0410-a405-d3ace91eadb9

doc/Changelog
iterator/iter_scrub.c

index 9a24fdef2f7017f13d37388f6224ba690bd12e02..a9c50afbee1ae0ee3e7d5d1c1657d746ad1d09f7 100644 (file)
@@ -1,3 +1,7 @@
+22 June 2015: Wouter
+       - Fix #677 Fix CNAME corresponding to a DNAME was checked incorrectly
+         and was therefore always synthesized (thanks to Valentin Dietrich).
+
 4 June 2015: Wouter
        - RFC 7553 RR type URI support, is now enabled by default.
 
index e9db19482a308d14de8d05a03d17e788cbe4651c..cc05867c0a4b4968936ce3f743bfa4dc99b03f60 100644 (file)
@@ -372,7 +372,7 @@ scrub_normalize(sldns_buffer* pkt, struct msg_parse* msg,
                                /* check next cname */
                                uint8_t* t = NULL;
                                size_t tlen = 0;
-                               if(!parse_get_cname_target(rrset, &t, &tlen))
+                               if(!parse_get_cname_target(nx, &t, &tlen))
                                        return 0;
                                if(dname_pkt_compare(pkt, alias, t) == 0) {
                                        /* it's OK and better capitalized */