From bd9aa4d561df738331b65ad05abcbd7672cd0493 Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Thu, 22 Oct 2009 15:54:12 +1100 Subject: [PATCH] s4:dsdb Set partitions metadata as soon as it is set up. --- source4/dsdb/samdb/ldb_modules/partition_init.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/source4/dsdb/samdb/ldb_modules/partition_init.c b/source4/dsdb/samdb/ldb_modules/partition_init.c index f4163dab3d4..2a1f34e9bcb 100644 --- a/source4/dsdb/samdb/ldb_modules/partition_init.c +++ b/source4/dsdb/samdb/ldb_modules/partition_init.c @@ -742,6 +742,9 @@ int partition_init(struct ldb_module *module) return ret; } + module->private_data = talloc_steal(module, data); + talloc_free(mem_ctx); + ret = ldb_mod_register_control(module, LDB_CONTROL_DOMAIN_SCOPE_OID); if (ret != LDB_SUCCESS) { ldb_debug(ldb_module_get_ctx(module), LDB_DEBUG_ERROR, @@ -756,8 +759,5 @@ int partition_init(struct ldb_module *module) return LDB_ERR_OPERATIONS_ERROR; } - module->private_data = talloc_steal(module, data); - - talloc_free(mem_ctx); return ldb_next_init(module); } -- 2.11.4.GIT