Merge
authorvaleriep
Mon Mar 31 16:50:16 2008 -0700 (23 months ago)
changeset 18699b3301fc27c
parent 185c063b7fb55f7
parent 183e1bf7407c933
child 187df5d7e6ac15e
Merge
--- a/src/solaris/native/sun/security/pkcs11/wrapper/p11_md.c Mon Mar 31 16:16:12 2008 -0700
+++ b/src/solaris/native/sun/security/pkcs11/wrapper/p11_md.c Mon Mar 31 16:50:16 2008 -0700
@@ -123,7 +123,10 @@ JNIEXPORT void JNICALL Java_sun_security
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;
}