Author: idra Date: 2006-01-08 13:50:06 +0000 (Sun, 08 Jan 2006) New Revision: 12769
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=12769 Log: Make ldb_next_request() evident, I was much confused on first sight Simo. Modified: branches/SAMBA_4_0/source/dsdb/samdb/ldb_modules/kludge_acl.c Changeset: Modified: branches/SAMBA_4_0/source/dsdb/samdb/ldb_modules/kludge_acl.c =================================================================== --- branches/SAMBA_4_0/source/dsdb/samdb/ldb_modules/kludge_acl.c 2006-01-08 13:46:53 UTC (rev 12768) +++ branches/SAMBA_4_0/source/dsdb/samdb/ldb_modules/kludge_acl.c 2006-01-08 13:50:06 UTC (rev 12769) @@ -85,12 +85,14 @@ /* search */ static int kludge_acl_search(struct ldb_module *module, struct ldb_request *req) { + struct kludge_private_data *data = talloc_get_type(module->private_data, struct kludge_private_data); + struct ldb_message *msg; 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; + 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 */ if (ret != LDB_SUCCESS || !data->password_attrs) {
