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