From: Artem Boldariev Date: Mon, 27 Nov 2023 21:10:36 +0000 (+0200) Subject: DoH unit test: do not increase 'active_cconnects' too much X-Git-Tag: v9.19.19~10^2~2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=71219882edcf0b33e68463887cce5b3b71e4fe7d;p=thirdparty%2Fbind9.git DoH unit test: do not increase 'active_cconnects' too much Theoretically, the value could get too big, not letting the test to finish. This commit fixes that omission. --- diff --git a/tests/isc/doh_test.c b/tests/isc/doh_test.c index ad083f1e700..1da62f1d605 100644 --- a/tests/isc/doh_test.c +++ b/tests/isc/doh_test.c @@ -773,6 +773,7 @@ doh_connect_thread(void *arg) { */ int_fast64_t active = atomic_fetch_add(&active_cconnects, 1); if (active > workers) { + atomic_fetch_sub(&active_cconnects, 1); return; } connect_send_request(connect_nm, req_url, atomic_load(&POST),