From: Colin Vidal Date: Tue, 2 Jun 2026 08:04:27 +0000 (+0200) Subject: Fix isc__tid_initcount() REQUIRE X-Git-Tag: v9.21.23~3^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=0811c2deb23245392ba1d06f985a8d5cfa370576;p=thirdparty%2Fbind9.git 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. --- diff --git a/lib/isc/tid.c b/lib/isc/tid.c index 909b4a949f2..ce385abeb7f 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; }