]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Do not use libxml2 deprecated functions
authorAram Sargsyan <aram@isc.org>
Mon, 5 Sep 2022 09:59:44 +0000 (09:59 +0000)
committerAram Sargsyan <aram@isc.org>
Tue, 6 Sep 2022 09:20:55 +0000 (09:20 +0000)
The usage of xmlInitThreads() and xmlCleanupThreads() functions in
libxml2 is now marked as deprecated, and these functions will be made
private in the future.

Use xmlInitParser() and xmlCleanupParser() instead of them.

(cherry picked from commit a5d412d9243dc0404a321276364d5967fd69ea3a)

bin/named/main.c

index 33421faeaa4f5f647ff5063e5285e8063ac93403..2645489aee69ad06e00b200583b0723d3fd1c6af 100644 (file)
@@ -1384,7 +1384,7 @@ main(int argc, char *argv[]) {
 #endif /* ifdef HAVE_GPERFTOOLS_PROFILER */
 
 #ifdef HAVE_LIBXML2
-       xmlInitThreads();
+       xmlInitParser();
 #endif /* HAVE_LIBXML2 */
 
        /*
@@ -1520,7 +1520,7 @@ main(int argc, char *argv[]) {
        named_os_shutdown();
 
 #ifdef HAVE_LIBXML2
-       xmlCleanupThreads();
+       xmlCleanupParser();
 #endif /* HAVE_LIBXML2 */
 
 #ifdef HAVE_GPERFTOOLS_PROFILER