mirror of
https://github.com/samba-team/samba.git
synced 2025-01-10 01:18:15 +03:00
parent
1a7eb52aee
commit
161ebbc17a
@ -4074,7 +4074,11 @@ static void init_user_token(NT_USER_TOKEN *token, DOM_SID *user_sid)
|
||||
{
|
||||
token->num_sids = 4;
|
||||
|
||||
token->user_sids = SMB_MALLOC_ARRAY(DOM_SID, 4);
|
||||
if (!(token->user_sids = SMB_MALLOC_ARRAY(DOM_SID, 4))) {
|
||||
d_fprintf(stderr, "malloc failed\n");
|
||||
token->num_sids = 0;
|
||||
return;
|
||||
}
|
||||
|
||||
token->user_sids[0] = *user_sid;
|
||||
sid_copy(&token->user_sids[1], &global_sid_World);
|
||||
|
Loading…
Reference in New Issue
Block a user