mirror of
https://github.com/samba-team/samba.git
synced 2024-12-24 21:34:56 +03:00
s3: Fix sending NULL sids to lookupsids3
This commit is contained in:
parent
9fcbe3a65c
commit
c2c71b8e05
@ -451,8 +451,8 @@ static NTSTATUS cmd_lsa_lookup_sids3(struct rpc_pipe_client *cli,
|
|||||||
}
|
}
|
||||||
|
|
||||||
for (i = 0; i < sids.num_sids; i++) {
|
for (i = 0; i < sids.num_sids; i++) {
|
||||||
sids.sids[0].sid = string_sid_talloc(sids.sids, argv[i + 1]);
|
sids.sids[i].sid = string_sid_talloc(sids.sids, argv[i + 1]);
|
||||||
if (!sids.sids[0].sid) {
|
if (!sids.sids[i].sid) {
|
||||||
result = NT_STATUS_INVALID_SID;
|
result = NT_STATUS_INVALID_SID;
|
||||||
goto done;
|
goto done;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user