]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
- Fix #828: missing type in access-control-tag-action redirect results
authorWouter Wijngaards <wouter@nlnetlabs.nl>
Mon, 5 Sep 2016 14:30:24 +0000 (14:30 +0000)
committerWouter Wijngaards <wouter@nlnetlabs.nl>
Mon, 5 Sep 2016 14:30:24 +0000 (14:30 +0000)
  in NXDOMAIN.

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

doc/Changelog
services/localzone.c

index 248ed13b12449093f2fd397e273b07b9e1c0e167..92b9e0c817258f9ad41f8430d1988990d4c12c35 100644 (file)
@@ -6,6 +6,8 @@
        - Fix #829: doc of sldns_wire2str_rdata_buf() return value has an
          off-by-one typo, from Jinmei Tatuya (Infoblox).
        - Fix incomplete prototypes reported by Dag-Erling Smørgrav.
+       - Fix #828: missing type in access-control-tag-action redirect results
+         in NXDOMAIN.
 
 2 September 2016: Wouter
        - Fix compile with openssl 1.1.0 with api=1.1.0.
index aeea2c6f52b4a6dd3384ba0a830ec6595be251af..7091b01a2ab13a0bc5070a684b645e758b8c7eb2 100644 (file)
@@ -1351,7 +1351,8 @@ lz_zone_answer(struct local_zone* z, struct query_info* qinfo,
                 * or using closest match for NSEC.
                 * or using closest match for returning delegation downwards
                 */
-               int rcode = ld?LDNS_RCODE_NOERROR:LDNS_RCODE_NXDOMAIN;
+               int rcode = (ld || lz_type == local_zone_redirect)?
+                       LDNS_RCODE_NOERROR:LDNS_RCODE_NXDOMAIN;
                if(z->soa)
                        return local_encode(qinfo, edns, buf, temp, 
                                z->soa, 0, rcode);