diff options
Diffstat (limited to 'crypto')
-rw-r--r-- | crypto/evp/evp_enc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/evp/evp_enc.c b/crypto/evp/evp_enc.c index e02e801949..ad64a74bb4 100644 --- a/crypto/evp/evp_enc.c +++ b/crypto/evp/evp_enc.c @@ -120,7 +120,7 @@ int EVP_CipherInit_ex(EVP_CIPHER_CTX *ctx, const EVP_CIPHER *cipher, * reinitialisation, when it may all be unnecessary. */ if (ctx->engine && ctx->cipher - && (!cipher || (cipher && (cipher->nid == ctx->cipher->nid)))) + && (cipher == NULL || cipher->nid == ctx->cipher->nid)) goto skip_to_init; #endif if (cipher) { |