Don't crash if there are no trusted certs
authorMatt Caswell <matt@openssl.org>
Wed, 18 Apr 2018 13:20:29 +0000 (14:20 +0100)
committerMatt Caswell <matt@openssl.org>
Thu, 19 Apr 2018 08:01:14 +0000 (09:01 +0100)
commit5e80a5da0320b90c6af29195e168ec6e22de2caf
tree0805b61663abeced1bf36c6d329db57512b0203d
parentc6c7bb010770cbf7d818d0ef8f5628decaa7e037
Don't crash if there are no trusted certs

The X509_STORE_CTX_init() docs explicitly allow a NULL parameter for the
X509_STORE. Therefore we shouldn't crash if we subsequently call
X509_verify_cert() and no X509_STORE has been set.

Fixes #2462

Reviewed-by: Richard Levitte <levitte@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/6003)
crypto/x509/x509_lu.c