summaryrefslogtreecommitdiff
path: root/source4/lib/ldb
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2010-10-18 14:06:50 +1100
committerAndrew Bartlett <abartlet@samba.org>2010-10-18 11:13:04 +0000
commit48c54f9ec879b5ffedfe91d52202bff3d2ef1eff (patch)
treedcb77fb04441e0db83e7c28e2adc85b18321520b /source4/lib/ldb
parentce01e36d8c2e3b9857d64a648fdf683c0c267bd6 (diff)
downloadsamba-48c54f9ec879b5ffedfe91d52202bff3d2ef1eff.tar.gz
samba-48c54f9ec879b5ffedfe91d52202bff3d2ef1eff.tar.bz2
samba-48c54f9ec879b5ffedfe91d52202bff3d2ef1eff.zip
ldb Ensure we mark ongoing LDAP requests as PENDING
Diffstat (limited to 'source4/lib/ldb')
-rw-r--r--source4/lib/ldb/ldb_ildap/ldb_ildap.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/source4/lib/ldb/ldb_ildap/ldb_ildap.c b/source4/lib/ldb/ldb_ildap/ldb_ildap.c
index 98e98a8c79..774336b82e 100644
--- a/source4/lib/ldb/ldb_ildap/ldb_ildap.c
+++ b/source4/lib/ldb/ldb_ildap/ldb_ildap.c
@@ -404,6 +404,8 @@ static int ildb_request_send(struct ildb_context *ac, struct ldap_message *msg)
ldb = ldb_module_get_ctx(ac->module);
+ ldb_request_set_state(ac->req, LDB_ASYNC_PENDING);
+
req = ldap_request_send(ac->ildb->ldap, msg);
if (req == NULL) {
ldb_set_errstring(ldb, "async send request failed");