Skip to content

Commit

Permalink
Merge pull request #748 from jasonkatonica/katonica/issue17795/typein…
Browse files Browse the repository at this point in the history
…correct

Use correct JNI function to call ArrayList.add()
  • Loading branch information
keithc-ca committed Jan 9, 2024
2 parents 87557b8 + ffda827 commit d89d744
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/jdk.crypto.cryptoki/share/native/libj2pkcs11/j2secmod.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,12 @@
* questions.
*/

/*
* ===========================================================================
* (c) Copyright IBM Corp. 2024, 2024 All Rights Reserved
* ===========================================================================
*/

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
Expand Down Expand Up @@ -241,7 +247,7 @@ JNIEXPORT jobject JNICALL Java_sun_security_pkcs11_Secmod_nssGetModuleList
if (jModule == NULL) {
return NULL;
}
(*env)->CallVoidMethod(env, jList, jAdd, jModule);
(*env)->CallBooleanMethod(env, jList, jAdd, jModule);
if ((*env)->ExceptionCheck(env)) {
return NULL;
}
Expand Down

0 comments on commit d89d744

Please sign in to comment.