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

Alexandre Julliard julliard at winehq.org
Thu Nov 1 07:39:49 CDT 2007


Module: wine
Branch: master
Commit: 9980f478e2b359b419535a77a66a3de099c77565
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=9980f478e2b359b419535a77a66a3de099c77565

Author: Rob Shearman <rob at codeweavers.com>
Date:   Wed Oct 31 16:53:37 2007 +0000

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

---

 server/handle.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/server/handle.c b/server/handle.c
index 763870e..30facbe 100644
--- a/server/handle.c
+++ b/server/handle.c
@@ -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 );




More information about the wine-cvs mailing list