summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/libcrypto/evp/evp_enc.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/lib/libcrypto/evp/evp_enc.c b/src/lib/libcrypto/evp/evp_enc.c
index 7c25b59dce..3eef53c2d6 100644
--- a/src/lib/libcrypto/evp/evp_enc.c
+++ b/src/lib/libcrypto/evp/evp_enc.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: evp_enc.c,v 1.80 2023/12/26 08:39:28 tb Exp $ */ 1/* $OpenBSD: evp_enc.c,v 1.81 2023/12/26 09:04:30 tb Exp $ */
2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) 2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
3 * All rights reserved. 3 * All rights reserved.
4 * 4 *
@@ -72,8 +72,6 @@ int
72EVP_CipherInit(EVP_CIPHER_CTX *ctx, const EVP_CIPHER *cipher, 72EVP_CipherInit(EVP_CIPHER_CTX *ctx, const EVP_CIPHER *cipher,
73 const unsigned char *key, const unsigned char *iv, int enc) 73 const unsigned char *key, const unsigned char *iv, int enc)
74{ 74{
75 if (cipher != NULL)
76 EVP_CIPHER_CTX_cleanup(ctx);
77 return EVP_CipherInit_ex(ctx, cipher, NULL, key, iv, enc); 75 return EVP_CipherInit_ex(ctx, cipher, NULL, key, iv, enc);
78} 76}
79 77