diff --git a/src/crypto/crypto_util.cc b/src/crypto/crypto_util.cc index 133a5c7f7f1..9d64eaf31b6 100644 --- a/src/crypto/crypto_util.cc +++ b/src/crypto/crypto_util.cc @@ -156,6 +156,7 @@ void InitCryptoOnce() { Mutex::ScopedLock fips_lock(fips_mutex); #ifndef OPENSSL_IS_BORINGSSL OPENSSL_INIT_SETTINGS* settings = OPENSSL_INIT_new(); + CHECK_NOT_NULL(settings); #if OPENSSL_VERSION_MAJOR < 3 // --openssl-config=... diff --git a/src/node.cc b/src/node.cc index 8b5565bcdfa..33843bf8d7c 100644 --- a/src/node.cc +++ b/src/node.cc @@ -1208,6 +1208,7 @@ InitializeOncePerProcessInternal(const std::vector& args, } OPENSSL_INIT_SETTINGS* settings = OPENSSL_INIT_new(); + CHECK_NOT_NULL(settings); OPENSSL_INIT_set_config_filename(settings, conf_file); OPENSSL_INIT_set_config_appname(settings, conf_section_name); OPENSSL_INIT_set_config_file_flags(settings,