mirror of
https://github.com/samba-team/samba.git
synced 2024-12-28 07:21:54 +03:00
Limit the number of SIDs that may be looked up, in line with existing code
for name->sid.
This commit is contained in:
parent
1f605fe77c
commit
0ebccc0dbe
@ -641,6 +641,11 @@ NTSTATUS _lsa_lookup_sids(pipes_struct *p, LSA_Q_LOOKUP_SIDS *q_u, LSA_R_LOOKUP_
|
||||
LSA_TRANS_NAME_ENUM *names = NULL;
|
||||
uint32 mapped_count = 0;
|
||||
|
||||
if (num_entries > MAX_LOOKUP_SIDS) {
|
||||
num_entries = MAX_LOOKUP_SIDS;
|
||||
DEBUG(5,("_lsa_lookup_sids: truncating SID lookup list to %d\n", num_entries));
|
||||
}
|
||||
|
||||
ref = (DOM_R_REF *)talloc_zero(p->mem_ctx, sizeof(DOM_R_REF));
|
||||
names = (LSA_TRANS_NAME_ENUM *)talloc_zero(p->mem_ctx, sizeof(LSA_TRANS_NAME_ENUM));
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user