Commit ad668472 authored by Evan Hunt's avatar Evan Hunt
Browse files

[master] bug in rrl slip

3545.	[bug]		RRL slip behavior was incorrect when set to 1.
			[RT #33111]
parent f9adb48a
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 <dot@dotat.at>
......
......@@ -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);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment