summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2006-09-11 15:43:31 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:18:22 -0500
commitc4660ea56987fbb68d53d231103cdedb609672b5 (patch)
tree98d0ebbc86faef2b3a849a836e5e91ebaeb259fb /source4
parent13a062a41eeab093028949ba53945a5f8f988b01 (diff)
downloadsamba-c4660ea56987fbb68d53d231103cdedb609672b5.tar.gz
samba-c4660ea56987fbb68d53d231103cdedb609672b5.tar.bz2
samba-c4660ea56987fbb68d53d231103cdedb609672b5.zip
r18385: 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 (This used to be commit 8c4241ecbbd9686d990073cec53dc1fde0fdde9b)
Diffstat (limited to 'source4')
-rw-r--r--source4/torture/rpc/unixinfo.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/source4/torture/rpc/unixinfo.c b/source4/torture/rpc/unixinfo.c
index 6d1772a4f4..070a7952f6 100644
--- a/source4/torture/rpc/unixinfo.c
+++ b/source4/torture/rpc/unixinfo.c
@@ -32,8 +32,10 @@ static BOOL test_uidtosid(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx)
{
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 @@ static BOOL test_getpwuid(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx)
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);