Vitaliy Margolen : server: Prevent a crash on error while creating a
token.
Alexandre Julliard
julliard at wine.codeweavers.com
Thu Jan 25 06:12:24 CST 2007
Module: wine
Branch: master
Commit: 55fdda4c3e5a2a6dc5b054ee7273ce8900de6b4f
URL: http://source.winehq.org/git/wine.git/?a=commit;h=55fdda4c3e5a2a6dc5b054ee7273ce8900de6b4f
Author: Vitaliy Margolen <wine-patches at kievinfo.com>
Date: Wed Jan 24 23:43:30 2007 -0700
server: Prevent a crash on error while creating a token.
---
server/token.c | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
diff --git a/server/token.c b/server/token.c
index 28455a5..04d3808 100644
--- a/server/token.c
+++ b/server/token.c
@@ -424,6 +424,7 @@ static struct token *create_token( unsig
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( unsig
return NULL;
}
}
- else
- token->default_dacl = NULL;
token->source = source;
}
More information about the wine-cvs
mailing list