mirror of
https://github.com/samba-team/samba.git
synced 2025-01-15 23:24:37 +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++)
|
||||
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 */
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user