From 78b46c533a36cdfa6c5f8ab305f13c5aa142b819 Mon Sep 17 00:00:00 2001 From: Matthias Dieter Wallnöfer Date: Sun, 6 Mar 2011 15:56:48 +0100 Subject: s4:partition LDB module - extended operations - make the initialisation check consistent To the other operations. --- source4/dsdb/samdb/ldb_modules/partition.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'source4/dsdb/samdb') diff --git a/source4/dsdb/samdb/ldb_modules/partition.c b/source4/dsdb/samdb/ldb_modules/partition.c index 1760fd7510..f75085e8a2 100644 --- a/source4/dsdb/samdb/ldb_modules/partition.c +++ b/source4/dsdb/samdb/ldb_modules/partition.c @@ -1160,15 +1160,17 @@ static int partition_sequence_number(struct ldb_module *module, struct ldb_reque /* extended */ static int partition_extended(struct ldb_module *module, struct ldb_request *req) { - struct partition_private_data *data; + struct partition_private_data *data = talloc_get_type(ldb_module_get_private(module), + struct partition_private_data); struct partition_context *ac; int ret; - data = talloc_get_type(ldb_module_get_private(module), struct partition_private_data); + /* if we aren't initialised yet go further */ if (!data) { return ldb_next_request(module, req); } + /* see if we are still up-to-date */ ret = partition_reload_if_required(module, data, req); if (ret != LDB_SUCCESS) { return ret; -- cgit