From d41209512e06de1a99b2df829b7fcd53b6b471d5 Mon Sep 17 00:00:00 2001 From: Wouter Wijngaards Date: Thu, 2 Nov 2017 08:23:52 +0000 Subject: [PATCH] - Fix #1913: ub_ctx_config is under circumstances thread-safe. git-svn-id: file:///svn/unbound/trunk@4392 be551aaa-1e26-0410-a405-d3ace91eadb9 --- doc/Changelog | 3 +++ doc/libunbound.3.in | 5 ++++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/doc/Changelog b/doc/Changelog index 9292f09ab..bf880705a 100644 --- a/doc/Changelog +++ b/doc/Changelog @@ -1,3 +1,6 @@ +2 November 2017: Wouter + - Fix #1913: ub_ctx_config is under circumstances thread-safe. + 31 October 2017: Wouter - Document that errno is left informative on libunbound config read fail. diff --git a/doc/libunbound.3.in b/doc/libunbound.3.in index 8fd1b8967..e570b5932 100644 --- a/doc/libunbound.3.in +++ b/doc/libunbound.3.in @@ -203,7 +203,10 @@ without trailing ':'. The returned value must be free(2)d by the caller. A power\-user interface that lets you specify an unbound config file, see \fIunbound.conf\fR(5), which is read for configuration. Not all options are relevant. For some specific options, such as adding trust anchors, special -routines exist. +routines exist. This function is thread-save only if a single instance of +ub_ctx* exists in the application, If several instances exist the +application has to ensure that ub_ctx_config is not called in parallel by +the different instances. .TP .B ub_ctx_set_fwd Set machine to forward DNS queries to, the caching resolver to use.