summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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");