- rpz triggers, fix to put braces around operator.

This commit is contained in:
W.C.A. Wijngaards 2021-03-12 13:13:17 +01:00
parent 263f974120
commit 62674aaff8
2 changed files with 2 additions and 2 deletions

View 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

View 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);