From b11183be0cd3ad675248804922bb240fbbd448e4 Mon Sep 17 00:00:00 2001 From: Pauli Date: Fri, 1 Apr 2022 09:59:49 +1100 Subject: [PATCH] Fix Coverity 1503314 unchecked return value Reviewed-by: David von Oheimb Reviewed-by: Tomas Mraz (Merged from https://github.com/openssl/openssl/pull/18013) --- apps/speed.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/speed.c b/apps/speed.c index b6e7d361f0..377686681b 100644 --- a/apps/speed.c +++ b/apps/speed.c @@ -736,7 +736,7 @@ static int EVP_Update_loop(void *args) rc = EVP_DecryptUpdate(ctx, buf, &outl, buf, lengths[testnum]); if (rc != 1) { /* reset iv in case of counter overflow */ - EVP_CipherInit_ex(ctx, NULL, NULL, NULL, iv, -1); + (void)EVP_CipherInit_ex(ctx, NULL, NULL, NULL, iv, -1); } } } else { @@ -744,7 +744,7 @@ static int EVP_Update_loop(void *args) rc = EVP_EncryptUpdate(ctx, buf, &outl, buf, lengths[testnum]); if (rc != 1) { /* reset iv in case of counter overflow */ - EVP_CipherInit_ex(ctx, NULL, NULL, NULL, iv, -1); + (void)EVP_CipherInit_ex(ctx, NULL, NULL, NULL, iv, -1); } } }