summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
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 */