diff options
author | Dmitry Belyavskiy <beldmit@gmail.com> | 2023-02-16 11:23:09 +0100 |
---|---|---|
committer | Pauli <pauli@openssl.org> | 2023-03-15 08:46:54 +1100 |
commit | 07626ea9e5400bd857a58a4da06756748701e9ed (patch) | |
tree | e9c75d4805a37749a5782a2ced56a31d9e59df8d /apps | |
parent | 3fc2b7d6b8f961144905330dfd4689f5bd515199 (diff) |
Avoid erroneous diagnostics in speed measuring
Fixes #20291
Reviewed-by: Tom Cosgrove <tom.cosgrove@arm.com>
Reviewed-by: Paul Dale <pauli@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/20306)
Diffstat (limited to 'apps')
-rw-r--r-- | apps/speed.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/speed.c b/apps/speed.c index b647e2022b..5d4b389da6 100644 --- a/apps/speed.c +++ b/apps/speed.c @@ -774,7 +774,7 @@ static int EVP_Update_loop(void *args) else rc = EVP_EncryptFinal_ex(ctx, buf, &outl); - if (rc <= 1) + if (rc == 0) BIO_printf(bio_err, "Error finalizing cipher loop\n"); return count; } @@ -816,7 +816,7 @@ static int EVP_Update_loop_ccm(void *args) else final = EVP_EncryptFinal_ex(ctx, buf, &outl); - if (final <= 1) + if (final == 0) BIO_printf(bio_err, "Error finalizing ccm loop\n"); return realcount; } |