summaryrefslogtreecommitdiff
path: root/source4/lib
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2006-12-12 17:20:38 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:29:10 -0500
commita2976633ffe5858cf1fc55afa57e2e7503fdc8ad (patch)
tree44099f797143d2717ccb6cb3e9a886b5e6f98973 /source4/lib
parente13088f2b79a408e8f73de6d7f55eeacffda11a2 (diff)
downloadsamba-a2976633ffe5858cf1fc55afa57e2e7503fdc8ad.tar.gz
samba-a2976633ffe5858cf1fc55afa57e2e7503fdc8ad.tar.bz2
samba-a2976633ffe5858cf1fc55afa57e2e7503fdc8ad.zip
r20122: pass ildb to ildb_request_noop()
metze (This used to be commit cf9aade216930980bf47ea8b97db976c4907cbca)
Diffstat (limited to 'source4/lib')
-rw-r--r--source4/lib/ldb/ldb_ildap/ldb_ildap.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/source4/lib/ldb/ldb_ildap/ldb_ildap.c b/source4/lib/ldb/ldb_ildap/ldb_ildap.c
index 90cad04a10..7285bad00b 100644
--- a/source4/lib/ldb/ldb_ildap/ldb_ildap.c
+++ b/source4/lib/ldb/ldb_ildap/ldb_ildap.c
@@ -395,9 +395,9 @@ static int ildb_request_send(struct ildb_private *ildb, struct ldap_message *msg
return LDB_SUCCESS;
}
-static int ildb_request_noop(struct ldb_module *module, struct ldb_request *req)
+static int ildb_request_noop(struct ildb_private *ildb, struct ldb_request *req)
{
- struct ldb_handle *h = init_ildb_handle(module, req->context, req->callback);
+ struct ldb_handle *h = init_ildb_handle(ildb->module, req->context, req->callback);
struct ildb_context *ildb_ac;
int ret = LDB_SUCCESS;
@@ -406,11 +406,11 @@ static int ildb_request_noop(struct ldb_module *module, struct ldb_request *req)
}
ildb_ac = talloc_get_type(h->private_data, struct ildb_context);
-
+
req->handle = h;
if (ildb_ac->callback) {
- ret = ildb_ac->callback(module->ldb, ildb_ac->context, NULL);
+ ret = ildb_ac->callback(ildb->module->ldb, ildb_ac->context, NULL);
}
req->handle->state = LDB_ASYNC_DONE;
return ret;
@@ -490,7 +490,7 @@ static int ildb_add(struct ldb_module *module, struct ldb_request *req)
/* ignore ltdb specials */
if (ldb_dn_is_special(req->op.add.message->dn)) {
- return ildb_request_noop(module, req);
+ return ildb_request_noop(ildb, req);
}
msg = new_ldap_message(ildb->ldap);
@@ -540,7 +540,7 @@ static int ildb_modify(struct ldb_module *module, struct ldb_request *req)
/* ignore ltdb specials */
if (ldb_dn_is_special(req->op.mod.message->dn)) {
- return ildb_request_noop(module, req);
+ return ildb_request_noop(ildb, req);
}
msg = new_ldap_message(ildb->ldap);
@@ -588,7 +588,7 @@ static int ildb_delete(struct ldb_module *module, struct ldb_request *req)
/* ignore ltdb specials */
if (ldb_dn_is_special(req->op.del.dn)) {
- return ildb_request_noop(module, req);
+ return ildb_request_noop(ildb, req);
}
msg = new_ldap_message(ildb->ldap);
@@ -619,7 +619,7 @@ static int ildb_rename(struct ldb_module *module, struct ldb_request *req)
/* ignore ltdb specials */
if (ldb_dn_is_special(req->op.rename.olddn) || ldb_dn_is_special(req->op.rename.newdn)) {
- return ildb_request_noop(module, req);
+ return ildb_request_noop(ildb, req);
}
msg = new_ldap_message(ildb->ldap);