From 087a7ff95e7e7626fd992a12b8d4661de73c90cd Mon Sep 17 00:00:00 2001 From: "W.C.A. Wijngaards" Date: Wed, 25 Aug 2021 16:19:12 +0200 Subject: [PATCH] - Fix asynclook unit test for setup of lockchecks before log. --- doc/Changelog | 1 + testcode/asynclook.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) 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(); -- 2.47.3