summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTheo Buehler <tb@cvs.openbsd.org>2024-02-02 14:11:46 +0000
committerTheo Buehler <tb@cvs.openbsd.org>2024-02-02 14:11:46 +0000
commitd865ed0c5d2239cef049d57458a4b48f0a3a2d19 (patch)
tree53b1f32b1d4e6b056009fe74f7b90166637392e9
parentfb08858e404257f8b7caf9cb0336102eb44bb06d (diff)
Ignore EVP_CIPHER_CTX_reset() return value, it can't fail
-rw-r--r--lib/libcrypto/cms/cms_kari.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libcrypto/cms/cms_kari.c b/lib/libcrypto/cms/cms_kari.c
index 8ed54e7578e..242a496932f 100644
--- a/lib/libcrypto/cms/cms_kari.c
+++ b/lib/libcrypto/cms/cms_kari.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: cms_kari.c,v 1.15 2023/07/08 08:26:26 beck Exp $ */
+/* $OpenBSD: cms_kari.c,v 1.16 2024/02/02 14:11:45 tb Exp $ */
/*
* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL
* project.
@@ -279,7 +279,7 @@ cms_kek_cipher(unsigned char **pout, size_t *poutlen, const unsigned char *in,
explicit_bzero(kek, keklen);
if (!rv)
free(out);
- EVP_CIPHER_CTX_reset(kari->ctx);
+ (void)EVP_CIPHER_CTX_reset(kari->ctx);
/* FIXME: WHY IS kari->pctx freed here? /RL */
EVP_PKEY_CTX_free(kari->pctx);
kari->pctx = NULL;