File openssl-fips_fix_selftests_return_value.patch of Package openssl-1_0_0.21013

Index: openssl-1.0.2p/crypto/fips/fips_ecdh_selftest.c
===================================================================
--- openssl-1.0.2p.orig/crypto/fips/fips_ecdh_selftest.c
+++ openssl-1.0.2p/crypto/fips/fips_ecdh_selftest.c
@@ -221,6 +221,9 @@ int FIPS_selftest_ecdh(void)
     }
 
  err:
+    if (rv == -1) {
+        rv = 0;
+    }
 
     if (x)
         BN_clear_free(x);
openSUSE Build Service is sponsored by