mirror of
https://github.com/nodejs/node.git
synced 2026-11-25 23:01:06 -05:00
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:
1 parent
b514438418
commit
c0fad18ac0
1 file changed
+1
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user