mirror of
https://github.com/samba-team/samba.git
synced 2024-12-24 21:34:56 +03:00
r18405: Now that POLICY_HND == struct policy_handle, we can
make rpccli_lsa_close() a real one line wrapper for
rpccli_lsa_Close().
I'm still keeping the wrapper for now because I'm not sure
what we will do about a usable client API. I don't think
calling the autogenerated client code directly is a good idea
as the IDL is still evolving.
(This used to be commit 47f0c71218
)
This commit is contained in:
parent
5e1146ab58
commit
40892266f6
@ -132,14 +132,7 @@ NTSTATUS rpccli_lsa_open_policy2(struct rpc_pipe_client *cli,
|
|||||||
NTSTATUS rpccli_lsa_close(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx,
|
NTSTATUS rpccli_lsa_close(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx,
|
||||||
POLICY_HND *pol)
|
POLICY_HND *pol)
|
||||||
{
|
{
|
||||||
struct policy_handle policy;
|
return rpccli_lsa_Close( cli, mem_ctx, pol);
|
||||||
|
|
||||||
if ( !pol )
|
|
||||||
return NT_STATUS_NO_MEMORY;
|
|
||||||
|
|
||||||
memcpy( &policy, pol, sizeof(policy) );
|
|
||||||
|
|
||||||
return rpccli_lsa_Close( cli, mem_ctx, &policy );
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/** Lookup a list of sids */
|
/** Lookup a list of sids */
|
||||||
|
Loading…
Reference in New Issue
Block a user