diff --git a/src/crypto/crypto_util.cc b/src/crypto/crypto_util.cc index b9d037fb7235..577520e1d21b 100644 --- a/src/crypto/crypto_util.cc +++ b/src/crypto/crypto_util.cc @@ -118,6 +118,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 4ba019ddca05..176fcd30f8c8 100644 --- a/src/node.cc +++ b/src/node.cc @@ -1216,6 +1216,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,