We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8e0ea91 commit 4f9c891Copy full SHA for 4f9c891
src/java.base/linux/native/libsystemconf/systemconf.c
@@ -131,11 +131,13 @@ JNIEXPORT jboolean JNICALL Java_java_security_SystemConfigurator_getSystemFIPSEn
131
dbgPrint(env, "getSystemFIPSEnabled: reading " FIPS_ENABLED_PATH);
132
if ((fe = fopen(FIPS_ENABLED_PATH, "r")) == NULL) {
133
throwIOException(env, "Cannot open " FIPS_ENABLED_PATH);
134
+ return JNI_FALSE;
135
}
136
fips_enabled = fgetc(fe);
137
fclose(fe);
138
if (fips_enabled == EOF) {
139
throwIOException(env, "Cannot read " FIPS_ENABLED_PATH);
140
141
142
msg_bytes = snprintf(msg, MSG_MAX_SIZE, "getSystemFIPSEnabled:" \
143
" read character is '%c'", fips_enabled);
0 commit comments