Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 575251a

Browse filesBrowse files
wooffieaduh95
authored andcommitted
src: add nullptr handling from X509_STORE_new()
In openssl we should check result of X509_STORE_new() for nullptr Refs: #56694 PR-URL: #56700 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
1 parent 8fb03d8 commit 575251a
Copy full SHA for 575251a

File tree

Expand file treeCollapse file tree

1 file changed

+1
-0
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+1
-0
lines changed
Open diff view settings
Collapse file

‎src/crypto/crypto_context.cc‎

Copy file name to clipboardExpand all lines: src/crypto/crypto_context.cc
+1Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -272,6 +272,7 @@ X509_STORE* NewRootCertStore() {
272272
}
273273

274274
X509_STORE* store = X509_STORE_new();
275+
CHECK_NOT_NULL(store);
275276
if (*system_cert_path != '\0') {
276277
ERR_set_mark();
277278
X509_STORE_load_locations(store, system_cert_path, nullptr);

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.