# HG changeset patch # User wetmore # Date 1206995230 25200 # Node ID 3711f2ad2f6dfd428257144579c147ba24df454f # Parent 61e9ed3ce684751f98666c4f7161df40c18e5c32 6469580: 1.5.0_08 JVM crashes in SignatureHandlerLibrary::add on Fujitsu Primepower platform Reviewed-by: andreas, valeriep, wetmore Contributed-by: chris.phillips@sun.com diff -r 61e9ed3ce684 -r 3711f2ad2f6d jdk/src/solaris/native/sun/security/pkcs11/wrapper/p11_md.c --- a/jdk/src/solaris/native/sun/security/pkcs11/wrapper/p11_md.c Mon Mar 31 11:09:57 2008 -0700 +++ b/jdk/src/solaris/native/sun/security/pkcs11/wrapper/p11_md.c Mon Mar 31 13:27:10 2008 -0700 @@ -123,7 +123,10 @@ C_GetFunctionList = (CK_C_GetFunctionList) dlsym(hModule, getFunctionListStr); (*env)->ReleaseStringUTFChars(env, jGetFunctionList, getFunctionListStr); } - if ((C_GetFunctionList == NULL) || ((systemErrorMessage = dlerror()) != NULL)){ + if (C_GetFunctionList == NULL) { + throwIOException(env, "ERROR: C_GetFunctionList == NULL"); + return; + } else if ( (systemErrorMessage = dlerror()) != NULL ){ throwIOException(env, systemErrorMessage); return; }