mirror of
https://github.com/samba-team/samba.git
synced 2025-12-04 08:23:50 +03:00
r4088: Get medieval on our ass about malloc.... :-). Take control of all our allocation
functions so we can funnel through some well known functions. Should help greatly with malloc checking. HEAD patch to follow. Jeremy.
This commit is contained in:
committed by
Gerald (Jerry) Carter
parent
12440744ba
commit
620f2e608f
@@ -90,7 +90,7 @@ NTSTATUS nt_token_to_group_list(TALLOC_CTX *mem_ctx, const DOM_SID *domain_sid,
|
||||
DOM_GID *gids;
|
||||
int i;
|
||||
|
||||
gids = (DOM_GID *)talloc(mem_ctx, sizeof(*gids) * nt_token->num_sids);
|
||||
gids = TALLOC_ARRAY(mem_ctx, DOM_GID, nt_token->num_sids);
|
||||
|
||||
if (!gids) {
|
||||
return NT_STATUS_NO_MEMORY;
|
||||
|
||||
Reference in New Issue
Block a user