server: Prevent a crash on error while creating a token.

This commit is contained in:
Vitaliy Margolen 2007-01-24 23:43:30 -07:00 committed by Alexandre Julliard
parent c04e7e7878
commit 55fdda4c3e
1 changed files with 1 additions and 2 deletions

View File

@ -424,6 +424,7 @@ static struct token *create_token( unsigned primary, const SID *user,
list_init( &token->privileges );
list_init( &token->groups );
token->primary = primary;
token->default_dacl = NULL;
/* copy user */
token->user = memdup( user, FIELD_OFFSET(SID, SubAuthority[user->SubAuthorityCount]) );
@ -477,8 +478,6 @@ static struct token *create_token( unsigned primary, const SID *user,
return NULL;
}
}
else
token->default_dacl = NULL;
token->source = source;
}