ldb Ensure we mark ongoing LDAP requests as PENDING
authorAndrew Bartlett <abartlet@samba.org>
Mon, 18 Oct 2010 03:06:50 +0000 (14:06 +1100)
committerAndrew Bartlett <abartlet@samba.org>
Mon, 18 Oct 2010 11:13:04 +0000 (11:13 +0000)
source4/lib/ldb/ldb_ildap/ldb_ildap.c

index 98e98a8c794d0950e1b2a7911a5a384191084c77..774336b82edc676dd520a21b822f3bc458a90da8 100644 (file)
@@ -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");