From 7aa8eeafae0a21bc5fd0ad64b2a6c3647f2e39c5 Mon Sep 17 00:00:00 2001 From: Stanislav Levin Date: Sep 02 2020 08:29:39 +0000 Subject: bind-9.16: Don't re-initialize hash in BIND-only mode That has been done by named server. This is the backport of https://gitlab.isc.org/isc-projects/bind9/-/commit/2e7d82443fa415398f37e145325cca26d501a942 --- diff --git a/src/ldap_driver.c b/src/ldap_driver.c index 0e9127b..8c4ff62 100644 --- a/src/ldap_driver.c +++ b/src/ldap_driver.c @@ -1097,11 +1097,10 @@ dyndb_init(isc_mem_t *mctx, const char *name, const char *parameters, isc_lib_register(); isc_log_setcontext(dctx->lctx); dns_log_setcontext(dctx->lctx); + isc_hash_set_initializer(dctx->hashinit); log_debug(5, "registering library from dynamic ldap driver, %p != %p.", dctx->refvar, &isc_bind9); } - isc_hash_set_initializer(dctx->hashinit); - log_debug(2, "registering dynamic ldap driver for %s.", name); /* Finally, create the instance. */