提交 23373fea 编写于 作者: D Dr. Matthias St. Pierre 提交者: Shane Lontis

crypto/conf: openssl_config_int() returns unitialized value

openssl_config_int() returns the uninitialized variable `ret`
when compiled with OPENSSL_SYS_UEFI.

Fixes #9026
Reviewed-by: NTim Hudson <tjh@openssl.org>
Reviewed-by: NShane Lontis <shane.lontis@oracle.com>
(Merged from https://github.com/openssl/openssl/pull/9029)

(cherry picked from commit f4a96507fb880d5f5a707c138388cb8b5b1ba8c8)
上级 2671490d
...@@ -42,7 +42,7 @@ void OPENSSL_config(const char *appname) ...@@ -42,7 +42,7 @@ void OPENSSL_config(const char *appname)
int openssl_config_int(const OPENSSL_INIT_SETTINGS *settings) int openssl_config_int(const OPENSSL_INIT_SETTINGS *settings)
{ {
int ret; int ret = 0;
const char *filename; const char *filename;
const char *appname; const char *appname;
unsigned long flags; unsigned long flags;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册