diff options
author | Andrew Tridgell <tridge@samba.org> | 2010-09-27 15:03:44 -0700 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2010-09-28 00:04:03 +0000 |
commit | 66761423474edc9736a8a6eae6feaaf958d89d0e (patch) | |
tree | 94acf9f0ee5e10ee2672427fcd35e14c3b750459 /source4 | |
parent | 396cdd6343e12a1b3cdd2d4c3bbac37c5fc30330 (diff) | |
download | samba-66761423474edc9736a8a6eae6feaaf958d89d0e.tar.gz samba-66761423474edc9736a8a6eae6feaaf958d89d0e.tar.bz2 samba-66761423474edc9736a8a6eae6feaaf958d89d0e.zip |
s4-ildap: two more places that need talloc_reparent()
these contexts can have references
Autobuild-User: Andrew Tridgell <tridge@samba.org>
Autobuild-Date: Tue Sep 28 00:04:03 UTC 2010 on sn-devel-104
Diffstat (limited to 'source4')
-rw-r--r-- | source4/lib/ldb/ldb_ildap/ldb_ildap.c | 2 | ||||
-rw-r--r-- | source4/libcli/ldap/ldap_bind.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/source4/lib/ldb/ldb_ildap/ldb_ildap.c b/source4/lib/ldb/ldb_ildap/ldb_ildap.c index 044f91b3a3..98e98a8c79 100644 --- a/source4/lib/ldb/ldb_ildap/ldb_ildap.c +++ b/source4/lib/ldb/ldb_ildap/ldb_ildap.c @@ -409,7 +409,7 @@ static int ildb_request_send(struct ildb_context *ac, struct ldap_message *msg) ldb_set_errstring(ldb, "async send request failed"); return LDB_ERR_OPERATIONS_ERROR; } - ac->ireq = talloc_steal(ac, req); + ac->ireq = talloc_reparent(ac->ildb->ldap, ac, req); if (!ac->ireq->conn) { ldb_set_errstring(ldb, "connection to remote LDAP server dropped?"); diff --git a/source4/libcli/ldap/ldap_bind.c b/source4/libcli/ldap/ldap_bind.c index 5a2635ac0b..65659794c5 100644 --- a/source4/libcli/ldap/ldap_bind.c +++ b/source4/libcli/ldap/ldap_bind.c @@ -352,7 +352,7 @@ _PUBLIC_ NTSTATUS ldap_bind_sasl(struct ldap_connection *conn, status = NT_STATUS_NO_MEMORY; goto failed; } - talloc_steal(tmp_ctx, req); + talloc_reparent(conn, tmp_ctx, req); status = ldap_result_n(req, 0, &response); if (!NT_STATUS_IS_OK(status)) { |