isaacpittman-hitachi / rpms / openssl

Forked from rpms/openssl 2 years ago
Clone

Blame SOURCES/openssl-1.1.1-regression-fixes.patch

782d48
diff -up openssl-1.1.1b/crypto/conf/conf_lib.c.regression openssl-1.1.1b/crypto/conf/conf_lib.c
782d48
--- openssl-1.1.1b/crypto/conf/conf_lib.c.regression	2019-02-26 15:15:30.000000000 +0100
782d48
+++ openssl-1.1.1b/crypto/conf/conf_lib.c	2019-05-10 14:28:57.718049429 +0200
782d48
@@ -356,8 +356,10 @@ OPENSSL_INIT_SETTINGS *OPENSSL_INIT_new(
782d48
 {
782d48
     OPENSSL_INIT_SETTINGS *ret = malloc(sizeof(*ret));
782d48
 
782d48
-    if (ret != NULL)
782d48
-        memset(ret, 0, sizeof(*ret));
782d48
+    if (ret == NULL)
782d48
+        return NULL;
782d48
+
782d48
+    memset(ret, 0, sizeof(*ret));
782d48
     ret->flags = DEFAULT_CONF_MFLAGS;
782d48
 
782d48
     return ret;