diff options
-rw-r--r-- | source4/libcli/ldap/ldap_ildap.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |