server: Make sure to always initialise req_sd.owner_len and req_sd.group_len in the handler for the get_security_object call.

This commit is contained in:
Rob Shearman 2007-10-31 16:53:37 +00:00 committed by Alexandre Julliard
parent 07c3f4411e
commit 9980f478e2
1 changed files with 4 additions and 0 deletions

View File

@ -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 );