diff options
Diffstat (limited to 'source4/dsdb')
-rw-r--r-- | source4/dsdb/samdb/ldb_modules/kludge_acl.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/source4/dsdb/samdb/ldb_modules/kludge_acl.c b/source4/dsdb/samdb/ldb_modules/kludge_acl.c index cc6a0d18f4..5d982d0842 100644 --- a/source4/dsdb/samdb/ldb_modules/kludge_acl.c +++ b/source4/dsdb/samdb/ldb_modules/kludge_acl.c @@ -85,11 +85,13 @@ static enum user_is what_is_user(struct ldb_module *module) /* search */ static int kludge_acl_search(struct ldb_module *module, struct ldb_request *req) { - enum user_is user_type; - int ret = ldb_next_request(module, req); - struct ldb_message *msg; struct kludge_private_data *data = talloc_get_type(module->private_data, struct kludge_private_data); - int i, j; + struct ldb_message *msg; + enum user_is user_type; + int i, j, ret; + + /* go down the path and wait for reply to filter out stuff if needed */ + ret = ldb_next_request(module, req); /* We may not be fully initialised yet, or we might have just * got an error */ |