From 40892266f60b96b458bcb0c30912d6cbeb80e16d Mon Sep 17 00:00:00 2001 From: Gerald Carter Date: Mon, 11 Sep 2006 22:09:29 +0000 Subject: 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) --- source3/rpc_client/cli_lsarpc.c | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) (limited to 'source3/rpc_client') 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 */ -- cgit