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:41:47 +0000 (10:41 +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)

crypto/conf/conf_sap.c

index 3994a86395f8001b032f02297f616f75cf7743c8..921ff770855647c388b78759d57f745ca3464ec9 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;