From 66761423474edc9736a8a6eae6feaaf958d89d0e Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Mon, 27 Sep 2010 15:03:44 -0700 Subject: s4-ildap: two more places that need talloc_reparent() these contexts can have references Autobuild-User: Andrew Tridgell Autobuild-Date: Tue Sep 28 00:04:03 UTC 2010 on sn-devel-104 --- source4/libcli/ldap/ldap_bind.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source4/libcli/ldap') 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)) { -- cgit