[ros-diffs] [cwittich] 39196: fix lsa handle leak See issue #3999 for more details.

cwittich at svn.reactos.org cwittich at svn.reactos.org
Thu Jan 29 15:42:14 CET 2009


Author: cwittich
Date: Thu Jan 29 08:42:13 2009
New Revision: 39196

URL: http://svn.reactos.org/svn/reactos?rev=39196&view=rev
Log:
fix lsa handle leak
See issue #3999 for more details.

Modified:
    trunk/reactos/dll/win32/lsasrv/lsarpc.c

Modified: trunk/reactos/dll/win32/lsasrv/lsarpc.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/lsasrv/lsarpc.c?rev=39196&r1=39195&r2=39196&view=diff
==============================================================================
--- trunk/reactos/dll/win32/lsasrv/lsarpc.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/lsasrv/lsarpc.c [iso-8859-1] Thu Jan 29 08:42:13 2009
@@ -189,7 +189,10 @@
 
     /* This is our fake handle, don't go too much long way */
     if (*ObjectHandle == (LSA_HANDLE)0xcafe)
+    {
+        *ObjectHandle = NULL;
         Status = STATUS_SUCCESS;
+    }
 
 
     TRACE("LsarClose done (Status: 0x%08lx)!\n", Status);



More information about the Ros-diffs mailing list