mirror of
https://github.com/isc-projects/bind9.git
synced 2026-06-14 23:40:00 -04:00
fix: dev: 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. Closes #6113 Merge branch '6113-tid-initcount' into 'main' See merge request isc-projects/bind9!12164
This commit is contained in:
commit
137e3a5e57
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue