Skip to content

Commit 62569ed

Browse files
wooffiemarco-ippolito
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 <[email protected]> Reviewed-By: Luigi Pinca <[email protected]>
1 parent 6b3ac8a commit 62569ed

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/crypto/crypto_context.cc

+1
Original file line numberDiff line numberDiff line change
@@ -219,6 +219,7 @@ X509_STORE* NewRootCertStore() {
219219
}
220220

221221
X509_STORE* store = X509_STORE_new();
222+
CHECK_NOT_NULL(store);
222223
if (*system_cert_path != '\0') {
223224
ERR_set_mark();
224225
X509_STORE_load_locations(store, system_cert_path, nullptr);

0 commit comments

Comments
 (0)