Skip to content
Snippets Groups Projects
Commit 9980f478 authored by Robert Shearman's avatar Robert Shearman Committed by Alexandre Julliard
Browse files

server: Make sure to always initialise req_sd.owner_len and req_sd.group_len...

server: Make sure to always initialise req_sd.owner_len and req_sd.group_len in the handler for the get_security_object call.
parent 07c3f441
No related branches found
No related tags found
No related merge requests found
......@@ -641,10 +641,14 @@ DECL_HANDLER(get_security_object)
owner = sd_get_owner( sd );
if (req->security_info & OWNER_SECURITY_INFORMATION)
req_sd.owner_len = sd->owner_len;
else
req_sd.owner_len = 0;
group = sd_get_group( sd );
if (req->security_info & GROUP_SECURITY_INFORMATION)
req_sd.group_len = sd->group_len;
else
req_sd.group_len = 0;
req_sd.control |= SE_SACL_PRESENT;
sacl = sd_get_sacl( sd, &present );
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment