mirror of
https://github.com/isc-projects/bind9.git
synced 2026-06-25 23:48:54 -04:00
parent
2ce9b9310a
commit
72dda1b374
1 changed files with 4 additions and 4 deletions
|
|
@ -600,13 +600,13 @@ adj_trigger_cnt(dns_rpz_zones_t *rpzs, dns_rpz_num_t rpz_num,
|
|||
}
|
||||
|
||||
if (inc) {
|
||||
if (++*cnt == 1) {
|
||||
if (++*cnt == 1U) {
|
||||
*have |= DNS_RPZ_ZBIT(rpz_num);
|
||||
fix_qname_skip_recurse(rpzs);
|
||||
}
|
||||
} else {
|
||||
REQUIRE(*cnt != 0);
|
||||
if (--*cnt == 0) {
|
||||
REQUIRE(*cnt != 0U);
|
||||
if (--*cnt == 0U) {
|
||||
*have &= ~DNS_RPZ_ZBIT(rpz_num);
|
||||
fix_qname_skip_recurse(rpzs);
|
||||
}
|
||||
|
|
@ -1629,7 +1629,7 @@ fix_triggers(dns_rpz_zones_t *rpzs, dns_rpz_num_t rpz_num) {
|
|||
memset(&rpzs->total_triggers, 0, sizeof(rpzs->total_triggers));
|
||||
|
||||
#define SET_TRIG(n, zbit, type) \
|
||||
if (rpzs->triggers[n].type == 0) { \
|
||||
if (rpzs->triggers[n].type == 0U) { \
|
||||
rpzs->have.type &= ~zbit; \
|
||||
} else { \
|
||||
rpzs->total_triggers.type += rpzs->triggers[n].type; \
|
||||
|
|
|
|||
Loading…
Reference in a new issue