summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/lib/libcrypto/evp/p5_crpt.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/lib/libcrypto/evp/p5_crpt.c b/src/lib/libcrypto/evp/p5_crpt.c
index 15b9935ac1..7a56a3d4ad 100644
--- a/src/lib/libcrypto/evp/p5_crpt.c
+++ b/src/lib/libcrypto/evp/p5_crpt.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: p5_crpt.c,v 1.24 2024/01/27 16:26:25 tb Exp $ */ 1/* $OpenBSD: p5_crpt.c,v 1.25 2024/01/27 16:36:17 tb Exp $ */
2/* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL 2/* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL
3 * project 1999. 3 * project 1999.
4 */ 4 */
@@ -147,9 +147,11 @@ PKCS5_PBE_keyivgen(EVP_CIPHER_CTX *cctx, const char *pass, int passlen,
147 explicit_bzero(md_tmp, EVP_MAX_MD_SIZE); 147 explicit_bzero(md_tmp, EVP_MAX_MD_SIZE);
148 explicit_bzero(key, EVP_MAX_KEY_LENGTH); 148 explicit_bzero(key, EVP_MAX_KEY_LENGTH);
149 explicit_bzero(iv, EVP_MAX_IV_LENGTH); 149 explicit_bzero(iv, EVP_MAX_IV_LENGTH);
150
150 rv = 1; 151 rv = 1;
151err: 152 err:
152 EVP_MD_CTX_cleanup(&ctx); 153 EVP_MD_CTX_cleanup(&ctx);
153 PBEPARAM_free(pbe); 154 PBEPARAM_free(pbe);
155
154 return rv; 156 return rv;
155} 157}