comparison src/solaris/native/sun/security/pkcs11/wrapper/p11_md.c @ 155:e1bf7407c933

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
author wetmore
date Mon, 31 Mar 2008 13:27:10 -0700
parents 37a05a11f281
children b6d6877c1155
comparison
equal deleted inserted replaced
0:a83f25436543 1:647cfc1d4077
121 if (jGetFunctionList != NULL) { 121 if (jGetFunctionList != NULL) {
122 getFunctionListStr = (*env)->GetStringUTFChars(env, jGetFunctionList, 0); 122 getFunctionListStr = (*env)->GetStringUTFChars(env, jGetFunctionList, 0);
123 C_GetFunctionList = (CK_C_GetFunctionList) dlsym(hModule, getFunctionListStr); 123 C_GetFunctionList = (CK_C_GetFunctionList) dlsym(hModule, getFunctionListStr);
124 (*env)->ReleaseStringUTFChars(env, jGetFunctionList, getFunctionListStr); 124 (*env)->ReleaseStringUTFChars(env, jGetFunctionList, getFunctionListStr);
125 } 125 }
126 if ((C_GetFunctionList == NULL) || ((systemErrorMessage = dlerror()) != NULL)){ 126 if (C_GetFunctionList == NULL) {
127 throwIOException(env, "ERROR: C_GetFunctionList == NULL");
128 return;
129 } else if ( (systemErrorMessage = dlerror()) != NULL ){
127 throwIOException(env, systemErrorMessage); 130 throwIOException(env, systemErrorMessage);
128 return; 131 return;
129 } 132 }
130 133
131 /* 134 /*