r20130: remove one more talloc_get_type()
authorStefan Metzmacher <metze@samba.org>
Tue, 12 Dec 2006 19:02:14 +0000 (19:02 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 19:29:12 +0000 (14:29 -0500)
metze
(This used to be commit 024dacb3b0a32bcaaef0b7a7598070b9034a7648)

source4/lib/ldb/ldb_ldap/ldb_ldap.c

index bbc1e368a12955b21eb4c7f324c5b990314ae4ff..9847ec4273f747c410cb17c737d035882173ca1f 100644 (file)
@@ -476,9 +476,9 @@ static int lldb_rename(struct ldb_module *module, struct ldb_request *req)
        return lldb_ldap_to_ldb(ret);
 }
 
-static int lldb_parse_result(struct ldb_handle *handle, LDAPMessage *result)
+static int lldb_parse_result(struct lldb_context *ac, LDAPMessage *result)
 {
-       struct lldb_context *ac = talloc_get_type(handle->private_data, struct lldb_context);
+       struct ldb_handle *handle = ac->handle;
        struct lldb_private *lldb = ac->lldb;
        struct ldb_reply *ares = NULL;
        LDAPMessage *msg;
@@ -683,7 +683,7 @@ static int lldb_wait(struct ldb_handle *handle, enum ldb_wait_type type)
                        goto done;
                }
 
-               return lldb_parse_result(handle, result);
+               return lldb_parse_result(ac, result);
 
        case LDB_WAIT_ALL:
                timeout.tv_usec = 0;
@@ -706,7 +706,7 @@ static int lldb_wait(struct ldb_handle *handle, enum ldb_wait_type type)
                                return LDB_ERR_TIME_LIMIT_EXCEEDED;
                        }
 
-                       ret = lldb_parse_result(handle, result);
+                       ret = lldb_parse_result(ac, result);
                        if (ret != LDB_SUCCESS) {
                                return ret;
                        }