]> git.ipfire.org Git - thirdparty/openssl.git/commit
Fix a possible NULL pointer dereference in create_cert_store()
authorZhou Qingyang <zhou1615@umn.edu>
Wed, 6 Apr 2022 16:48:09 +0000 (00:48 +0800)
committerTomas Mraz <tomas@openssl.org>
Thu, 21 Apr 2022 06:34:09 +0000 (08:34 +0200)
commit3f075967f664aac12951a1d7aa3124d9235cd299
tree0198743659f5910b0173f2018d73ccab7c1f8960
parent4d50a5467b0a208c61d163239a3544bae06343ea
Fix a possible NULL pointer dereference in create_cert_store()

In create_cert_store(), X509_STORE_new() is called and there is a
dereference of it in following function X509_STORE_add_lookup()
without check, which could lead to NULL pointer dereference.

Fix this by adding a NULL check of X509_STORE_new()

Reviewed-by: Shane Lontis <shane.lontis@oracle.com>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/18057)
apps/ts.c