diff options
author | Matthias Dieter Wallnöfer <mdw@samba.org> | 2011-03-06 15:56:48 +0100 |
---|---|---|
committer | Matthias Dieter Wallnöfer <mdw@samba.org> | 2011-03-10 11:12:05 +0100 |
commit | 78b46c533a36cdfa6c5f8ab305f13c5aa142b819 (patch) | |
tree | fea387187d77432f44ee51bce972987c69c1bb62 /source4/dsdb/samdb/ldb_modules | |
parent | e52c900b63bf61daf64e5495241a257a40998a06 (diff) | |
download | samba-78b46c533a36cdfa6c5f8ab305f13c5aa142b819.tar.gz samba-78b46c533a36cdfa6c5f8ab305f13c5aa142b819.tar.bz2 samba-78b46c533a36cdfa6c5f8ab305f13c5aa142b819.zip |
s4:partition LDB module - extended operations - make the initialisation check consistent
To the other operations.
Diffstat (limited to 'source4/dsdb/samdb/ldb_modules')
-rw-r--r-- | source4/dsdb/samdb/ldb_modules/partition.c | 6 |
1 files changed, 4 insertions, 2 deletions
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; |