summaryrefslogtreecommitdiffstats
path: root/crypto/evp/cmeth_lib.c
diff options
context:
space:
mode:
authorDmitry Belyavskiy <beldmit@gmail.com>2019-09-05 15:50:58 +0300
committerDmitry Belyavskiy <beldmit@gmail.com>2019-09-05 15:50:58 +0300
commit464ac47f81c07d5630026d3ce1251da00c469e00 (patch)
tree37acf23101424bdddc5ac9064a4e9e2ed4e22aad /crypto/evp/cmeth_lib.c
parent0220fc9921f0aa3aea43e6b672b8f89b3eb0261a (diff)
Reverting check to correct
Fixes #9773. Reviewed-by: Richard Levitte <levitte@openssl.org> Reviewed-by: Tim Hudson <tjh@openssl.org> (Merged from https://github.com/openssl/openssl/pull/9776)
Diffstat (limited to 'crypto/evp/cmeth_lib.c')
-rw-r--r--crypto/evp/cmeth_lib.c2
1 files changed, 1 insertions, 1 deletions
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));