Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
0bf1c22c
Commit
0bf1c22c
authored
Apr 07, 2006
by
Robert Shearman
Committed by
Alexandre Julliard
Apr 07, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
server: Handle failure of mem_alloc in duplicate_token.
parent
9e0d0563
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
token.c
server/token.c
+6
-0
No files found.
server/token.c
View file @
0bf1c22c
...
...
@@ -1031,6 +1031,12 @@ DECL_HANDLER(duplicate_token)
{
size_t
size
=
FIELD_OFFSET
(
struct
sid_and_attributes
,
sid
.
SubAuthority
[
group
->
sid
.
SubAuthorityCount
]
);
struct
sid_and_attributes
*
newgroup
=
mem_alloc
(
size
);
if
(
!
newgroup
)
{
release_object
(
token
);
release_object
(
src_token
);
return
;
}
memcpy
(
newgroup
,
group
,
size
);
list_add_tail
(
&
token
->
groups
,
&
newgroup
->
entry
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment