From: Yi Li Date: Tue, 27 Jun 2023 14:33:24 +0000 (+0800) Subject: conf/conf_sap.c: correct return of ossl_config_int() in UEFI system X-Git-Tag: openssl-3.1.2~41 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=33af73f80c7148d98c5f5e4849b314e470a5c465;p=thirdparty%2Fopenssl.git conf/conf_sap.c: correct return of ossl_config_int() in UEFI system FIX: https://github.com/openssl/openssl/issues/21299 ret in ossl_config_int() only used to check return value of CONF_modules_load_file(), should set it to 1 if in UEFI system. Signed-off-by: Yi Li Reviewed-by: Matt Caswell Reviewed-by: Tom Cosgrove Reviewed-by: Tomas Mraz (Merged from https://github.com/openssl/openssl/pull/21300) (cherry picked from commit 500e479db1beae5fa5691d40b866329d2fdc62e7) --- diff --git a/crypto/conf/conf_sap.c b/crypto/conf/conf_sap.c index 39efcdbf90f..8d5152b5d5e 100644 --- a/crypto/conf/conf_sap.c +++ b/crypto/conf/conf_sap.c @@ -66,6 +66,8 @@ int ossl_config_int(const OPENSSL_INIT_SETTINGS *settings) #ifndef OPENSSL_SYS_UEFI ret = CONF_modules_load_file(filename, appname, flags); +#else + ret = 1; #endif openssl_configured = 1; return ret;