]> git.ipfire.org Git - thirdparty/bind9.git/commit
Properly initialize libxml2
authorMichał Kępień <michal@isc.org>
Thu, 26 Sep 2019 08:20:26 +0000 (10:20 +0200)
committerMichał Kępień <michal@isc.org>
Thu, 26 Sep 2019 08:28:51 +0000 (10:28 +0200)
commite9f90627324362daff16acbc8288c01cf140ee56
treeb0956f25836f69fbf7d374363e7ce06a75a90730
parent4d725a54b85d49790af84d3ac5dfcfc4f1ba0337
Properly initialize libxml2

When libxml2 is to be used in a multi-threaded application, the
xmlInitThreads() function must be called before any other libxml2
function.  This function does different things on various platforms and
thus one can get away without calling it on Unix systems, but not on
Windows, where it initializes critical section objects used for
synchronizing access to data structures shared between threads.  Add the
missing xmlInitThreads() call to prevent crashes on affected systems.

Also add a matching xmlCleanupThreads() call to properly release the
resources set up by xmlInitThreads().

(cherry picked from commit a3c0b00ef6b37e51e9c0075a8afffb8e1ff3398c)
bin/named/statschannel.c