From 7fbe7007536214af99b2a2c3f07e3c04c7c6cd07 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Mon, 27 Sep 2010 12:54:26 -0700 Subject: s4-ildap: fixed a talloc_steal with references error We need talloc_reparent() instead Pair-Programmed-With: Andrew Bartlett Autobuild-User: Andrew Tridgell Autobuild-Date: Mon Sep 27 20:38:00 UTC 2010 on sn-devel-104 --- source4/libcli/ldap/ldap_ildap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source4/libcli') diff --git a/source4/libcli/ldap/ldap_ildap.c b/source4/libcli/ldap/ldap_ildap.c index 77bf3f0a35..10fe8e4916 100644 --- a/source4/libcli/ldap/ldap_ildap.c +++ b/source4/libcli/ldap/ldap_ildap.c @@ -73,7 +73,7 @@ _PUBLIC_ NTSTATUS ildap_search_bytree(struct ldap_connection *conn, const char * msg->controls = control_req; req = ldap_request_send(conn, msg); - talloc_steal(msg, req); + talloc_reparent(conn, msg, req); for (i=n=0;true;i++) { struct ldap_message *res; -- cgit