mirror of
https://github.com/openssl/openssl.git
synced 2024-12-03 05:41:46 +08:00
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)
This commit is contained in:
parent
0220fc9921
commit
464ac47f81
@ -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));
|
||||
|
Loading…
Reference in New Issue
Block a user