summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorGerald Carter <jerry@samba.org>2006-09-11 22:09:29 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 11:51:22 -0500
commit40892266f60b96b458bcb0c30912d6cbeb80e16d (patch)
tree3deeb05fb13ecb0e935e82dc689bcfbaef4067de /source3
parent5e1146ab5845169aba57dcd216f88589276e5df8 (diff)
downloadsamba-40892266f60b96b458bcb0c30912d6cbeb80e16d.tar.gz
samba-40892266f60b96b458bcb0c30912d6cbeb80e16d.tar.bz2
samba-40892266f60b96b458bcb0c30912d6cbeb80e16d.zip
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 47f0c71218ade18cb94b48661f064e8956e06096)
Diffstat (limited to 'source3')
-rw-r--r--source3/rpc_client/cli_lsarpc.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/source3/rpc_client/cli_lsarpc.c b/source3/rpc_client/cli_lsarpc.c
index 852602bb54..60ebb88e11 100644
--- a/source3/rpc_client/cli_lsarpc.c
+++ b/source3/rpc_client/cli_lsarpc.c
@@ -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,
POLICY_HND *pol)
{
- struct policy_handle policy;
-
- if ( !pol )
- return NT_STATUS_NO_MEMORY;
-
- memcpy( &policy, pol, sizeof(policy) );
-
- return rpccli_lsa_Close( cli, mem_ctx, &policy );
+ return rpccli_lsa_Close( cli, mem_ctx, pol);
}
/** Lookup a list of sids */