diff options
Diffstat (limited to '')
-rw-r--r-- | src/lib/libcrypto/evp/evp_enc.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lib/libcrypto/evp/evp_enc.c b/src/lib/libcrypto/evp/evp_enc.c index c64390d599..df818e3a62 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.49 2022/12/26 07:18:52 jmc Exp $ */ | 1 | /* $OpenBSD: evp_enc.c,v 1.50 2023/03/01 11:16:06 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 | * |
@@ -601,6 +601,7 @@ int | |||
601 | EVP_CIPHER_CTX_cleanup(EVP_CIPHER_CTX *c) | 601 | EVP_CIPHER_CTX_cleanup(EVP_CIPHER_CTX *c) |
602 | { | 602 | { |
603 | if (c->cipher != NULL) { | 603 | if (c->cipher != NULL) { |
604 | /* XXX - Avoid leaks, so ignore return value of cleanup()... */ | ||
604 | if (c->cipher->cleanup != NULL) | 605 | if (c->cipher->cleanup != NULL) |
605 | c->cipher->cleanup(c); | 606 | c->cipher->cleanup(c); |
606 | if (c->cipher_data != NULL) | 607 | if (c->cipher_data != NULL) |