Blame SOURCES/rh2021263-fips_missing_native_returns.patch

97e098
commit 1b5bd349bdfa7b9627ea58d819bc250a55112de2
97e098
Author: Fridrich Strba <fstrba@suse.com>
97e098
Date:   Mon Jan 17 19:44:03 2022 +0000
97e098
97e098
    RH2021263: Return in C code after having generated Java exception
97e098
97e098
diff --git openjdk.orig/src/java.base/linux/native/libsystemconf/systemconf.c openjdk/src/java.base/linux/native/libsystemconf/systemconf.c
97e098
index 6f4656bfcb6..34d0ff0ce91 100644
97e098
--- openjdk.orig/src/java.base/linux/native/libsystemconf/systemconf.c
97e098
+++ openjdk/src/java.base/linux/native/libsystemconf/systemconf.c
97e098
@@ -131,11 +131,13 @@ JNIEXPORT jboolean JNICALL Java_java_security_SystemConfigurator_getSystemFIPSEn
97e098
     dbgPrint(env, "getSystemFIPSEnabled: reading " FIPS_ENABLED_PATH);
97e098
     if ((fe = fopen(FIPS_ENABLED_PATH, "r")) == NULL) {
97e098
         throwIOException(env, "Cannot open " FIPS_ENABLED_PATH);
97e098
+        return JNI_FALSE;
97e098
     }
97e098
     fips_enabled = fgetc(fe);
97e098
     fclose(fe);
97e098
     if (fips_enabled == EOF) {
97e098
         throwIOException(env, "Cannot read " FIPS_ENABLED_PATH);
97e098
+        return JNI_FALSE;
97e098
     }
97e098
     msg_bytes = snprintf(msg, MSG_MAX_SIZE, "getSystemFIPSEnabled:" \
97e098
             " read character is '%c'", fips_enabled);