]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
- rpz triggers, fix to put braces around operator.
authorW.C.A. Wijngaards <wouter@nlnetlabs.nl>
Fri, 12 Mar 2021 12:13:17 +0000 (13:13 +0100)
committerW.C.A. Wijngaards <wouter@nlnetlabs.nl>
Fri, 12 Mar 2021 12:13:17 +0000 (13:13 +0100)
doc/unbound.conf.5.in
services/localzone.c

index 95f0c003866e8b364ffc17aa67f043a9595bb79f..d98514af578629b4cdb9cc151a4f5a9edbf42b83 100644 (file)
@@ -2411,7 +2411,7 @@ The triggers are encoded in the name on the left
        netblock.rpz-nsip             nameserver IP address
 .fi
 The netblock is written as <netblocklen>.<ip address in reverse>.
-For IPv6 use 'zz' for '::'.  Specify indiviual addresses with scope length
+For IPv6 use 'zz' for '::'.  Specify individual addresses with scope length
 of 32 or 128.  For example, 24.10.100.51.198.rpz-ip is 198.51.100.10/24 and
 32.10.zz.db8.2001.rpz-ip is 2001:db8:0:0:0:0:0:10/32.
 .P
index fa586ef380d89c24e789c58e8d63ae7162d27a18..a24137eacd8d6336638171fcc65582582a7acea1 100644 (file)
@@ -1604,7 +1604,7 @@ local_zones_zone_answer(struct local_zone* z, struct module_env* env,
                        lz_type == local_zone_always_nodata ||
                        lz_type == local_zone_truncate)?
                        LDNS_RCODE_NOERROR:LDNS_RCODE_NXDOMAIN;
-               rcode = lz_type == local_zone_truncate ? (rcode|BIT_TC) : rcode;
+               rcode = (lz_type == local_zone_truncate ? (rcode|BIT_TC) : rcode);
                if(z != NULL && z->soa && z->soa_negative)
                        return local_encode(qinfo, env, edns, repinfo, buf, temp,
                                z->soa_negative, 0, rcode);