From: Dmitry Belyavskiy Date: Thu, 5 Sep 2019 12:50:58 +0000 (+0300) Subject: Reverting check to correct X-Git-Tag: openssl-3.0.0-alpha1~1493 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=464ac47f81c07d5630026d3ce1251da00c469e00;p=oweals%2Fopenssl.git Reverting check to correct Fixes #9773. Reviewed-by: Richard Levitte Reviewed-by: Tim Hudson (Merged from https://github.com/openssl/openssl/pull/9776) --- diff --git a/crypto/evp/cmeth_lib.c b/crypto/evp/cmeth_lib.c index 4d823f0f5e..ba61c52564 100644 --- a/crypto/evp/cmeth_lib.c +++ b/crypto/evp/cmeth_lib.c @@ -38,7 +38,7 @@ EVP_CIPHER *EVP_CIPHER_meth_dup(const EVP_CIPHER *cipher) return NULL; if ((to = EVP_CIPHER_meth_new(cipher->nid, cipher->block_size, - cipher->key_len)) == NULL) { + cipher->key_len)) != NULL) { CRYPTO_RWLOCK *lock = to->lock; memcpy(to, cipher, sizeof(*to));