From: W.C.A. Wijngaards Date: Wed, 25 Aug 2021 14:19:12 +0000 (+0200) Subject: - Fix asynclook unit test for setup of lockchecks before log. X-Git-Tag: release-1.14.0rc1~56 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=087a7ff95e7e7626fd992a12b8d4661de73c90cd;p=thirdparty%2Funbound.git - Fix asynclook unit test for setup of lockchecks before log. --- diff --git a/doc/Changelog b/doc/Changelog index f3a3d3b12..ef467c129 100644 --- a/doc/Changelog +++ b/doc/Changelog @@ -13,6 +13,7 @@ Unlock zone and ip in rpz nsip and nsdname callback. Unlock authzone and localzone if clientip found in rpz worker call. - Fix compile warning in libunbound for listen desetup routine. + - Fix asynclook unit test for setup of lockchecks before log. 20 August 2021: Wouter - Fix #529: Fix: log_assert does nothing if UNBOUND_DEBUG is diff --git a/testcode/asynclook.c b/testcode/asynclook.c index 660f72a7d..fffd14ed5 100644 --- a/testcode/asynclook.c +++ b/testcode/asynclook.c @@ -406,10 +406,10 @@ int main(int argc, char** argv) struct lookinfo* lookups; int i, r, cancel=0, blocking=0, ext=0; + checklock_start(); /* init log now because solaris thr_key_create() is not threadsafe */ log_init(0,0,0); /* lock debug start (if any) */ - checklock_start(); /* create context */ ctx = ub_ctx_create();