mirror of
https://github.com/samba-team/samba.git
synced 2025-01-28 17:47:29 +03:00
cmd_lsa_lookup_sids: Check return code from string_to_sid; skip SIDs
which are not valid.
This commit is contained in:
parent
5a59727278
commit
bfb6104521
@ -211,7 +211,10 @@ static NTSTATUS cmd_lsa_lookup_sids(struct cli_state *cli, TALLOC_CTX *mem_ctx,
|
|||||||
}
|
}
|
||||||
|
|
||||||
for (i = 0; i < argc - 1; i++)
|
for (i = 0; i < argc - 1; i++)
|
||||||
string_to_sid(&sids[i], argv[i + 1]);
|
if (!string_to_sid(&sids[i], argv[i + 1])) {
|
||||||
|
result = NT_STATUS_INVALID_SID;
|
||||||
|
goto done;
|
||||||
|
}
|
||||||
|
|
||||||
/* Lookup the SIDs */
|
/* Lookup the SIDs */
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user