Commit 55fdda4c authored by Vitaliy Margolen's avatar Vitaliy Margolen Committed by Alexandre Julliard

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

parent c04e7e78
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment