diff --git a/CHANGES b/CHANGES index 71c4cb20bc..700ca50033 100644 --- a/CHANGES +++ b/CHANGES @@ -1,3 +1,6 @@ +3545. [bug] RRL slip behavior was incorrect when set to 1. + [RT #33111] + 3544. [contrib] check5011.pl: Script to report the status of managed keys as recorded in managed-keys.bind. Contributed by Tony Finch diff --git a/lib/dns/rrl.c b/lib/dns/rrl.c index cd07cf2838..063e047472 100644 --- a/lib/dns/rrl.c +++ b/lib/dns/rrl.c @@ -756,6 +756,8 @@ debit_rrl_entry(dns_rrl_t *rrl, dns_rrl_entry_t *e, double qps, double scale, } if (slip != 0 && e->key.s.rtype != DNS_RRL_RTYPE_ALL) { if (e->slip_cnt++ == 0) { + if ((int) e->slip_cnt >= slip) + e->slip_cnt = 0; if (isc_log_wouldlog(dns_lctx, DNS_RRL_LOG_DEBUG3)) debit_log(e, age, "slip"); return (DNS_RRL_RESULT_SLIP);