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
ea5808df
Commit
ea5808df
authored
Nov 30, 2014
by
Marcus Meissner
Committed by
Alexandre Julliard
Dec 01, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
server: Initialize the _len parts to 0 (Coverity).
parent
09761309
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
object.c
server/object.c
+3
-2
No files found.
server/object.c
View file @
ea5808df
...
...
@@ -451,6 +451,7 @@ int set_sd_defaults_from_token( struct object *obj, const struct security_descri
owner
=
token_get_user
(
token
);
new_sd
.
owner_len
=
security_sid_len
(
owner
);
}
else
new_sd
.
owner_len
=
0
;
if
(
set_info
&
GROUP_SECURITY_INFORMATION
&&
sd
->
group_len
)
{
...
...
@@ -467,6 +468,7 @@ int set_sd_defaults_from_token( struct object *obj, const struct security_descri
group
=
token_get_primary_group
(
token
);
new_sd
.
group_len
=
security_sid_len
(
group
);
}
else
new_sd
.
group_len
=
0
;
new_sd
.
control
|=
SE_SACL_PRESENT
;
sacl
=
sd_get_sacl
(
sd
,
&
present
);
...
...
@@ -479,9 +481,7 @@ int set_sd_defaults_from_token( struct object *obj, const struct security_descri
if
(
obj
->
sd
&&
present
)
new_sd
.
sacl_len
=
obj
->
sd
->
sacl_len
;
else
{
new_sd
.
sacl_len
=
0
;
}
}
new_sd
.
control
|=
SE_DACL_PRESENT
;
...
...
@@ -499,6 +499,7 @@ int set_sd_defaults_from_token( struct object *obj, const struct security_descri
dacl
=
token_get_default_dacl
(
token
);
new_sd
.
dacl_len
=
dacl
->
AclSize
;
}
else
new_sd
.
dacl_len
=
0
;
}
ptr
=
mem_alloc
(
sizeof
(
new_sd
)
+
new_sd
.
owner_len
+
new_sd
.
group_len
+
...
...
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