r18405: Now that POLICY_HND == struct policy_handle, we can
authorGerald Carter <jerry@samba.org>
Mon, 11 Sep 2006 22:09:29 +0000 (22:09 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 16:51:22 +0000 (11:51 -0500)
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.

source/rpc_client/cli_lsarpc.c

index 852602bb54ce2c63448c734839e670288f22661e..60ebb88e1199c26c22f0f832439d71ac0d62950c 100644 (file)
@@ -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 */