Commit d7a041c629 for bind

commit d7a041c62999f8da7eca4ab9c08d4ed76b7c01f7
Author: Mark Andrews <marka@isc.org>
Date:   Mon Sep 28 14:48:54 2026 +1000

    Fix RRL qps-scale TCP credit age check uses the response bucket age

    There was a cut-and-paste bug in 'debit_rrl_entry' where the age from
    the wrong entry was used to set scale.  Use 'credit_e' instead of 'e'.

diff --git a/lib/dns/rrl.c b/lib/dns/rrl.c
index 35959e2ab8..665ee4e208 100644
--- a/lib/dns/rrl.c
+++ b/lib/dns/rrl.c
@@ -652,7 +652,7 @@ debit_rrl_entry(dns_rrl_t *rrl, dns_rrl_entry_t *e, double qps, double scale,
 			rrl, client_addr, NULL, 0, dns_rdatatype_none, NULL,
 			DNS_RRL_RTYPE_TCP, now, false, log_buf, log_buf_len);
 		if (credit_e != NULL) {
-			age = get_age(rrl, e, now);
+			age = get_age(rrl, credit_e, now);
 			if (age < rrl->window) {
 				scale = 1.0;
 			}