fed7c0
From d7d3032de7f5d3dd3cffea6064549b63a9ad7d59 Mon Sep 17 00:00:00 2001
fed7c0
From: =?UTF-8?q?Petr=20Men=C5=A1=C3=ADk?= <pemensik@redhat.com>
fed7c0
Date: Thu, 17 Jun 2021 17:57:52 +0200
fed7c0
Subject: [PATCH] Skip isc_bind9 check on BIND 9.16.17+
fed7c0
fed7c0
Reference variable refvar from dns_dyndbctx_t were removed. Removed was
fed7c0
also flag requesting different namespace. Skip that check on last stable
fed7c0
version, it should eval to false on all versions anyway.
fed7c0
---
fed7c0
 src/ldap_driver.c | 2 ++
fed7c0
 1 file changed, 2 insertions(+)
fed7c0
fed7c0
diff --git a/src/ldap_driver.c b/src/ldap_driver.c
fed7c0
index e9f1005ee..5f9e00af1 100644
fed7c0
--- a/src/ldap_driver.c
fed7c0
+++ b/src/ldap_driver.c
fed7c0
@@ -1156,6 +1156,7 @@ dyndb_init(isc_mem_t *mctx, const char *name, const char *parameters,
fed7c0
 	RUNTIME_CHECK(isc_once_do(&library_init_once, library_init)
fed7c0
 		      == ISC_R_SUCCESS);
fed7c0
 
fed7c0
+#if LIBDNS_VERSION_MAJOR < 1617
fed7c0
 	/*
fed7c0
 	 * Depending on how dlopen() was called, we may not have
fed7c0
 	 * access to named's global namespace, in which case we need
fed7c0
@@ -1168,6 +1169,7 @@ dyndb_init(isc_mem_t *mctx, const char *name, const char *parameters,
fed7c0
 		isc_hash_set_initializer(dctx->hashinit);
fed7c0
 		log_debug(5, "registering library from dynamic ldap driver, %p != %p.", dctx->refvar, &isc_bind9);
fed7c0
 	}
fed7c0
+#endif
fed7c0
 
fed7c0
 	log_debug(2, "registering dynamic ldap driver for %s.", name);
fed7c0
 
fed7c0
-- 
fed7c0
2.31.1
fed7c0