svn commit: samba r18385 - in branches/SAMBA_4_0/source/torture/rpc: .

metze at samba.org metze at samba.org
Mon Sep 11 15:43:31 GMT 2006


Author: metze
Date: 2006-09-11 15:43:31 +0000 (Mon, 11 Sep 2006)
New Revision: 18385

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

Log:
fix crashes in the RPC-UNIXINFO test

jelmer: I think there're a few ref pointer related bugs in pidl
        we need to discuss them the next days

metze
Modified:
   branches/SAMBA_4_0/source/torture/rpc/unixinfo.c


Changeset:
Modified: branches/SAMBA_4_0/source/torture/rpc/unixinfo.c
===================================================================
--- branches/SAMBA_4_0/source/torture/rpc/unixinfo.c	2006-09-11 15:42:31 UTC (rev 18384)
+++ branches/SAMBA_4_0/source/torture/rpc/unixinfo.c	2006-09-11 15:43:31 UTC (rev 18385)
@@ -32,8 +32,10 @@
 {
 	NTSTATUS status;
 	struct unixinfo_UidToSid r;
+	struct dom_sid sid;
 
 	r.in.uid = 1000;
+	r.out.sid = &sid;
 
 	status = dcerpc_unixinfo_UidToSid(p, mem_ctx, &r);
 	if (!NT_STATUS_IS_OK(status)) {
@@ -58,6 +60,8 @@
 	
 	r.in.count = &num_uids;
 	r.in.uids = uids;
+	r.out.count = &num_uids;
+	r.out.infos = talloc_array(mem_ctx, struct unixinfo_GetPWUidInfo, num_uids);
 
 	result = dcerpc_unixinfo_GetPWUid(p, mem_ctx, &r);
 



More information about the samba-cvs mailing list