]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
- Fix scrubber with harden-glue turned off to reject NS (and other
authorWouter Wijngaards <wouter@nlnetlabs.nl>
Tue, 10 Feb 2015 14:01:45 +0000 (14:01 +0000)
committerWouter Wijngaards <wouter@nlnetlabs.nl>
Tue, 10 Feb 2015 14:01:45 +0000 (14:01 +0000)
  not-address) records.

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

doc/Changelog
iterator/iter_scrub.c

index 93e4e5fb85839788373e64ba7d08cfaec6032970..2dda130a78f3a85ca06d0e6e2949dfb9e307804b 100644 (file)
@@ -1,3 +1,7 @@
+10 February 2015: Wouter
+       - Fix scrubber with harden-glue turned off to reject NS (and other
+         not-address) records.
+
 9 February 2015: Wouter
        - Fix validation failure in case upstream forwarder (ISC BIND) does
          not have the same trust anchors and decides to insert unsigned NS
index b2248bc0cbc59c3307531eed69cfa0a1371339eb..1c81975b234f9f385c21825df2ce0f06151a04b2 100644 (file)
@@ -680,7 +680,9 @@ scrub_sanitize(sldns_buffer* pkt, struct msg_parse* msg,
                                 * (we dont want its glue that was approved
                                 * during the normalize action) */
                                del_addi = 1;
-                       } else if(!env->cfg->harden_glue) {
+                       } else if(!env->cfg->harden_glue && (
+                               rrset->type == LDNS_RR_TYPE_A ||
+                               rrset->type == LDNS_RR_TYPE_AAAA)) {
                                /* store in cache! Since it is relevant
                                 * (from normalize) it will be picked up 
                                 * from the cache to be used later */