From 0811c2deb23245392ba1d06f985a8d5cfa370576 Mon Sep 17 00:00:00 2001 From: Colin Vidal Date: Tue, 2 Jun 2026 10:04:27 +0200 Subject: [PATCH] Fix isc__tid_initcount() REQUIRE `isc__tid_initcount()` was checking that the current number of thread didn't exceed `ISC_TID_MAX`, not the newly assigned number. This is now fixed. --- lib/isc/tid.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/isc/tid.c b/lib/isc/tid.c index 909b4a949f..ce385abeb7 100644 --- a/lib/isc/tid.c +++ b/lib/isc/tid.c @@ -44,7 +44,7 @@ isc__tid_init(isc_tid_t tid) { void isc__tid_initcount(isc_tid_t count) { REQUIRE(tid_count == 0 || tid_count == count); - REQUIRE(tid_count < ISC_TID_MAX); + REQUIRE(count < ISC_TID_MAX); tid_count = count; }