From 48c54f9ec879b5ffedfe91d52202bff3d2ef1eff Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Mon, 18 Oct 2010 14:06:50 +1100 Subject: ldb Ensure we mark ongoing LDAP requests as PENDING --- source4/lib/ldb/ldb_ildap/ldb_ildap.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'source4/lib/ldb') 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"); -- cgit