Skip to content

Commit

Permalink
Fix Coverity 1503314 unchecked return value
Browse files Browse the repository at this point in the history
Reviewed-by: David von Oheimb <david.von.oheimb@siemens.com>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from #18013)
  • Loading branch information
paulidale committed May 4, 2022
1 parent e257d3e commit b11183b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apps/speed.c
Expand Up @@ -736,15 +736,15 @@ 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 {
for (count = 0; COND(c[D_EVP][testnum]); count++) {
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);
}
}
}
Expand Down

0 comments on commit b11183b

Please sign in to comment.