src: add nullptr handling from X509_STORE_new()

In openssl we should check result of X509_STORE_new() for nullptr
Refs: https://github.com/nodejs/node/issues/56694

PR-URL: https://github.com/nodejs/node/pull/56700
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
This commit is contained in:
Burkov Egor authored and Marco Ippolito committed 2025-03-06 13:38:17 +01:00
1 parent b514438418
commit c0fad18ac0
1 file changed
+1
+1
View File
@@ -219,6 +219,7 @@ X509_STORE* NewRootCertStore() {
}
X509_STORE* store = X509_STORE_new();
CHECK_NOT_NULL(store);
if (*system_cert_path != '\0') {
ERR_set_mark();
X509_STORE_load_locations(store, system_cert_path, nullptr);