]> git.ipfire.org Git - thirdparty/openssl.git/commitdiff
Fix Coverity 1503314 unchecked return value
authorPauli <pauli@openssl.org>
Thu, 31 Mar 2022 22:59:49 +0000 (09:59 +1100)
committerPauli <pauli@openssl.org>
Wed, 4 May 2022 07:15:20 +0000 (17:15 +1000)
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)

apps/speed.c

index b6e7d361f06e902eb55b7122026093e28df55d53..377686681b0f566f6ed7a8d37b3a9bcef2301fe5 100644 (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);
             }
         }
     }