mirror of
https://github.com/samba-team/samba.git
synced 2025-02-03 13:47:25 +03:00
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)
This commit is contained in:
parent
13a062a41e
commit
c4660ea569
@ -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);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user