diff options
author | Simo Sorce <idra@samba.org> | 2008-06-15 11:15:12 -0400 |
---|---|---|
committer | Simo Sorce <idra@samba.org> | 2008-06-15 15:06:26 -0400 |
commit | 78d9e9be0c170360f8ef926bce4c4233798aae28 (patch) | |
tree | f5482bf7ffeffa8b450d204bf274b0836bd71a77 /source4/lib/ldb/ldb_ildap/ldb_ildap.c | |
parent | 59ce56749130c4e3656e8c4aa9208005d93c6da6 (diff) | |
download | samba-78d9e9be0c170360f8ef926bce4c4233798aae28.tar.gz samba-78d9e9be0c170360f8ef926bce4c4233798aae28.tar.bz2 samba-78d9e9be0c170360f8ef926bce4c4233798aae28.zip |
Fix cleanup.
(This used to be commit acbe365e34571218fe312f52edec98f4fe5b76be)
Diffstat (limited to 'source4/lib/ldb/ldb_ildap/ldb_ildap.c')
-rw-r--r-- | source4/lib/ldb/ldb_ildap/ldb_ildap.c | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/source4/lib/ldb/ldb_ildap/ldb_ildap.c b/source4/lib/ldb/ldb_ildap/ldb_ildap.c index f0a34b6223..5ad671ea2e 100644 --- a/source4/lib/ldb/ldb_ildap/ldb_ildap.c +++ b/source4/lib/ldb/ldb_ildap/ldb_ildap.c @@ -146,7 +146,10 @@ static void ildb_request_timeout(struct event_context *ev, struct timeval t, void *private_data) { struct ildb_context *ac; - struct ldb_handle *handle = ac->handle; + struct ldb_handle *handle; + + ac = talloc_get_type(private_data, struct ildb_context); + handle = ac->handle; ac = talloc_get_type(private_data, struct ildb_context); @@ -162,12 +165,14 @@ static void ildb_request_timeout(struct event_context *ev, static void ildb_callback(struct ldap_request *req) { struct ildb_context *ac; - struct ldb_handle *handle = ac->handle; - struct ildb_private *ildb = ac->ildb; + struct ldb_handle *handle; + struct ildb_private *ildb; NTSTATUS status; int i; - ac =talloc_get_type(req->async.private_data, struct ildb_context); + ac = talloc_get_type(req->async.private_data, struct ildb_context); + ildb = ac->ildb; + handle = ac->handle; handle->status = LDB_SUCCESS; if (!NT_STATUS_IS_OK(req->status)) { |