6987652: VM crashed in sun.security.mscapi.RSAKeyPairGenerator.generateRSAKeyPair(...)
Reviewed-by: alanb
--- 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