mirror of
https://github.com/samba-team/samba.git
synced 2025-02-26 21:57:41 +03:00
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
This commit is contained in:
parent
396cdd6343
commit
6676142347
@ -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?");
|
||||
|
@ -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)) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user