svn commit: samba r23401 - in branches/SAMBA_3_0_26/source/rpc_client: .

jra at samba.org jra at samba.org
Sat Jun 9 00:18:10 GMT 2007


Author: jra
Date: 2007-06-09 00:18:07 +0000 (Sat, 09 Jun 2007)
New Revision: 23401

WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=23401

Log:
3.0.26 differs here from 3.0.25.
Jeremy.

Modified:
   branches/SAMBA_3_0_26/source/rpc_client/cli_lsarpc.c


Changeset:
Modified: branches/SAMBA_3_0_26/source/rpc_client/cli_lsarpc.c
===================================================================
--- branches/SAMBA_3_0_26/source/rpc_client/cli_lsarpc.c	2007-06-09 00:13:07 UTC (rev 23400)
+++ branches/SAMBA_3_0_26/source/rpc_client/cli_lsarpc.c	2007-06-09 00:18:07 UTC (rev 23401)
@@ -145,7 +145,6 @@
 	LSA_Q_LOOKUP_SIDS q;
 	LSA_R_LOOKUP_SIDS r;
 	DOM_R_REF ref;
-	LSA_TRANS_NAME_ENUM t_names;
 	NTSTATUS result = NT_STATUS_OK;
 	TALLOC_CTX *tmp_ctx = NULL;
 	int i;
@@ -163,10 +162,8 @@
 	init_q_lookup_sids(tmp_ctx, &q, pol, num_sids, sids, 1);
 
 	ZERO_STRUCT(ref);
-	ZERO_STRUCT(t_names);
 
 	r.dom_ref = &ref;
-	r.names = &t_names;
 
 	CLI_DO_RPC( cli, tmp_ctx, PI_LSARPC, LSA_LOOKUPSIDS,
 			q, r,
@@ -192,7 +189,7 @@
 
 	for (i = 0; i < num_sids; i++) {
 		fstring name, dom_name;
-		uint32 dom_idx = t_names.name[i].domain_idx;
+		uint32 dom_idx = r.names.name[i].domain_idx;
 
 		/* Translate optimised name through domain index array */
 
@@ -201,11 +198,11 @@
 			rpcstr_pull_unistr2_fstring(
                                 dom_name, &ref.ref_dom[dom_idx].uni_dom_name);
 			rpcstr_pull_unistr2_fstring(
-                                name, &t_names.uni_name[i]);
+                                name, &r.names.uni_name[i]);
 
 			(names)[i] = talloc_strdup(mem_ctx, name);
 			(domains)[i] = talloc_strdup(mem_ctx, dom_name);
-			(types)[i] = t_names.name[i].sid_name_use;
+			(types)[i] = r.names.name[i].sid_name_use;
 			
 			if (((names)[i] == NULL) || ((domains)[i] == NULL)) {
 				DEBUG(0, ("cli_lsa_lookup_sids(): out of memory\n"));



More information about the samba-cvs mailing list