summaryrefslogtreecommitdiff
path: root/source4/torture/rpc
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2007-04-12 15:06:24 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:50:37 -0500
commit3dc258faa70303e9687e67a9df1bc6f7d2680e88 (patch)
tree4a136d304862191383695c078bef0328b4567fe9 /source4/torture/rpc
parent3529cf25eb9c2cfb2a960f8e95f9ecdb264063b1 (diff)
downloadsamba-3dc258faa70303e9687e67a9df1bc6f7d2680e88.tar.gz
samba-3dc258faa70303e9687e67a9df1bc6f7d2680e88.tar.bz2
samba-3dc258faa70303e9687e67a9df1bc6f7d2680e88.zip
r22201: crash fix...
metze (This used to be commit 60799d171fa12debe61164b467e55a9e08485e28)
Diffstat (limited to 'source4/torture/rpc')
-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 25b3da31dd..c24217dac1 100644
--- a/source4/torture/rpc/unixinfo.c
+++ b/source4/torture/rpc/unixinfo.c
@@ -33,9 +33,11 @@ static bool test_sidtouid(struct torture_context *tctx, struct dcerpc_pipe *p)
NTSTATUS status;
struct unixinfo_SidToUid r;
struct dom_sid *sid;
+ uint64_t uid;
sid = dom_sid_parse_talloc(tctx, "S-1-5-32-1234-5432");
r.in.sid = *sid;
+ r.out.uid = &uid;
status = dcerpc_unixinfo_SidToUid(p, tctx, &r);
if (NT_STATUS_EQUAL(NT_STATUS_NONE_MAPPED, status)) {
@@ -94,9 +96,11 @@ static bool test_sidtogid(struct torture_context *tctx, struct dcerpc_pipe *p)
NTSTATUS status;
struct unixinfo_SidToGid r;
struct dom_sid *sid;
+ uint64_t gid;
sid = dom_sid_parse_talloc(tctx, "S-1-5-32-1234-5432");
r.in.sid = *sid;
+ r.out.gid = &gid;
status = dcerpc_unixinfo_SidToGid(p, tctx, &r);
if (NT_STATUS_EQUAL(NT_STATUS_NONE_MAPPED, status)) {