svn commit: samba r18397 - in branches/SAMBA_3_0/source/rpc_client:
.
jerry at samba.org
jerry at samba.org
Mon Sep 11 20:07:37 GMT 2006
Author: jerry
Date: 2006-09-11 20:07:35 +0000 (Mon, 11 Sep 2006)
New Revision: 18397
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=18397
Log:
Change rpccli_lsa_close() as a wrapper for the autogenerated
rpccli_lsa_Close().
Modified:
branches/SAMBA_3_0/source/rpc_client/cli_lsarpc.c
Changeset:
Modified: branches/SAMBA_3_0/source/rpc_client/cli_lsarpc.c
===================================================================
--- branches/SAMBA_3_0/source/rpc_client/cli_lsarpc.c 2006-09-11 20:06:55 UTC (rev 18396)
+++ branches/SAMBA_3_0/source/rpc_client/cli_lsarpc.c 2006-09-11 20:07:35 UTC (rev 18397)
@@ -138,35 +138,18 @@
NTSTATUS rpccli_lsa_close(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx,
POLICY_HND *pol)
{
- prs_struct qbuf, rbuf;
- LSA_Q_CLOSE q;
- LSA_R_CLOSE r;
- NTSTATUS result;
+ struct policy_handle policy;
+
+ if ( !pol )
+ return NT_STATUS_NO_MEMORY;
+
+ memcpy( &policy, pol, sizeof(policy) );
- ZERO_STRUCT(q);
- ZERO_STRUCT(r);
-
- init_lsa_q_close(&q, pol);
-
- CLI_DO_RPC( cli, mem_ctx, PI_LSARPC, LSA_CLOSE,
- q, r,
- qbuf, rbuf,
- lsa_io_q_close,
- lsa_io_r_close,
- NT_STATUS_UNSUCCESSFUL );
-
- /* Return output parameters */
-
- result = r.status;
-
- if (NT_STATUS_IS_OK(result)) {
#ifdef __INSURE__
- SAFE_FREE(pol->marker);
+ SAFE_FREE(pol->marker);
#endif
- *pol = r.pol;
- }
- return result;
+ return rpccli_lsa_Close( cli, mem_ctx, &policy );
}
/** Lookup a list of sids */
More information about the samba-cvs
mailing list