changeset 9674:5d8476e6e47a

6987652: VM crashed in sun.security.mscapi.RSAKeyPairGenerator.generateRSAKeyPair(...) Reviewed-by: alanb
author vinnie
date Mon, 09 May 2011 15:58:25 +0100
parents 595a61b6e5cc
children 5aaa241a1c44
files jdk/src/windows/native/sun/security/mscapi/security.cpp
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/jdk/src/windows/native/sun/security/mscapi/security.cpp	Mon May 09 01:57:28 2011 -0700
+++ b/jdk/src/windows/native/sun/security/mscapi/security.cpp	Mon May 09 15:58:25 2011 +0100
@@ -705,7 +705,7 @@
     HCRYPTPROV hCryptProv = NULL;
     HCRYPTKEY hKeyPair;
     DWORD dwFlags = (keySize << 16) | CRYPT_EXPORTABLE;
-    jobject keypair;
+    jobject keypair = NULL;
     const char* pszKeyContainerName = NULL; // UUID
 
     __try