1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-10 01:18:15 +03:00

r23757: Fix Coverity id 386

(This used to be commit 91be38f7ab)
This commit is contained in:
Volker Lendecke 2007-07-09 08:00:50 +00:00 committed by Gerald (Jerry) Carter
parent 1a7eb52aee
commit 161ebbc17a

View File

@ -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);