diff options
author | Volker Lendecke <vlendec@samba.org> | 2005-10-17 15:20:52 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 13:44:53 -0500 |
commit | bf59ef9d72b97b5e972ee84d410db8cbd2e2588e (patch) | |
tree | 75eb8beef2473fb8974facc75ee044933bbb0f3a | |
parent | 2038e9a698400ef808bf0d31f3aa185e4e08eafa (diff) | |
download | samba-bf59ef9d72b97b5e972ee84d410db8cbd2e2588e.tar.gz samba-bf59ef9d72b97b5e972ee84d410db8cbd2e2588e.tar.bz2 samba-bf59ef9d72b97b5e972ee84d410db8cbd2e2588e.zip |
r11122: Fix some talloc hierarchy errors
(This used to be commit 449cc714b882d6ebea3e1cbf92e204efba98b6cb)
-rw-r--r-- | source4/rpc_server/lsa/dcesrv_lsa.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source4/rpc_server/lsa/dcesrv_lsa.c b/source4/rpc_server/lsa/dcesrv_lsa.c index d2212d5a50..ca107adfbb 100644 --- a/source4/rpc_server/lsa/dcesrv_lsa.c +++ b/source4/rpc_server/lsa/dcesrv_lsa.c @@ -245,7 +245,7 @@ static NTSTATUS lsa_get_policy_state(struct dcesrv_call_state *dce_call, TALLOC_ } state->domain_name - = samdb_search_string(state->sam_ldb, mem_ctx, NULL, "nETBIOSName", + = samdb_search_string(state->sam_ldb, state, NULL, "nETBIOSName", "(&(objectclass=crossRef)(ncName=%s))", ldb_dn_linearize(mem_ctx, state->domain_dn)); if (!state->domain_name) { @@ -255,14 +255,14 @@ static NTSTATUS lsa_get_policy_state(struct dcesrv_call_state *dce_call, TALLOC_ /* work out the builtin_dn - useful for so many calls its worth fetching here */ - state->builtin_dn = samdb_search_dn(state->sam_ldb, mem_ctx, state->domain_dn, "(objectClass=builtinDomain)"); + state->builtin_dn = samdb_search_dn(state->sam_ldb, state, state->domain_dn, "(objectClass=builtinDomain)"); if (!state->builtin_dn) { return NT_STATUS_NO_SUCH_DOMAIN; } /* work out the system_dn - useful for so many calls its worth fetching here */ - state->system_dn = samdb_search_dn(state->sam_ldb, mem_ctx, + state->system_dn = samdb_search_dn(state->sam_ldb, state, state->domain_dn, "(&(objectClass=container)(cn=System))"); if (!state->system_dn) { return NT_STATUS_NO_SUCH_DOMAIN; |