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