Fix Coverity 1503314 unchecked return value

Reviewed-by: David von Oheimb <david.von.oheimb@siemens.com>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/18013)
This commit is contained in:
Pauli 2022-04-01 09:59:49 +11:00
parent e257d3e76f
commit b11183be0c

View File

@ -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);
}
}
}