Don't attempt to up-ref an EVP_CIPHER if it is NULL
authorMatt Caswell <matt@openssl.org>
Fri, 27 Mar 2020 16:05:36 +0000 (16:05 +0000)
committerMatt Caswell <matt@openssl.org>
Mon, 30 Mar 2020 13:46:54 +0000 (14:46 +0100)
commitc2146b57d296aa5b06e27cd8d76bbd040a3444b9
tree467eb31b06bb0015134918b62ee152e56850a7a6
parent743d9c16deee09bdd336a96170eb3e117508db1b
Don't attempt to up-ref an EVP_CIPHER if it is NULL

EVP_CIPHERs in the ssl_cipher_methods table can be NULL if
they are not available. We shouldn't attempt to up-ref a
cipher if it is NULL.

Reviewed-by: Shane Lontis <shane.lontis@oracle.com>
(Merged from https://github.com/openssl/openssl/pull/11426)
ssl/ssl_ciph.c