[SECUR32]
authorAleksey Bragin <aleksey@reactos.org>
Thu, 24 Feb 2011 22:50:00 +0000 (22:50 +0000)
committerAleksey Bragin <aleksey@reactos.org>
Thu, 24 Feb 2011 22:50:00 +0000 (22:50 +0000)
- Don't leave packageinfo uninitialized. Even though it's not the way it should work, wine's rpcrt4 doesn't really expect that function to return no packages at all. Should prevent freeing an unitialized pointer.
See issue #5778 for more details.

svn path=/trunk/; revision=50895

reactos/dll/win32/secur32/sspi.c

index 4bbc757..af4cdc2 100644 (file)
@@ -80,7 +80,7 @@ EnumerateSecurityPackagesW (
     SECURITY_STATUS ret = SEC_E_OK;
 
     *pcPackages = 0;
-
+    *ppPackageInfo = NULL;
     /*
     if (packageTable)
     {
@@ -113,7 +113,7 @@ EnumerateSecurityPackagesA(
         } */
         FreeContextBuffer(info);
     }
-
+    *ppPackageInfo = NULL;
        UNIMPLEMENTED;
 
     return ret;