crypto/conf: openssl_config_int() returns unitialized value
authorDr. Matthias St. Pierre <Matthias.St.Pierre@ncp-e.com>
Tue, 28 May 2019 12:29:59 +0000 (14:29 +0200)
committerShane Lontis <shane.lontis@oracle.com>
Wed, 29 May 2019 00:47:40 +0000 (10:47 +1000)
openssl_config_int() returns the uninitialized variable `ret`
when compiled with OPENSSL_SYS_UEFI.

Fixes #9026

Reviewed-by: Tim Hudson <tjh@openssl.org>
Reviewed-by: Shane Lontis <shane.lontis@oracle.com>
(Merged from https://github.com/openssl/openssl/pull/9029)

(cherry picked from commit f4a96507fb880d5f5a707c138388cb8b5b1ba8c8)

crypto/conf/conf_sap.c

index 3805c426d8020461750440dd88696a70798a6b00..82105de748ed54dc546c0641e473d33485657eef 100644 (file)
@@ -42,7 +42,7 @@ void OPENSSL_config(const char *appname)
 
 int openssl_config_int(const OPENSSL_INIT_SETTINGS *settings)
 {
-    int ret;
+    int ret = 0;
     const char *filename;
     const char *appname;
     unsigned long flags;