]> git.ipfire.org Git - thirdparty/openssl.git/commitdiff
Remove the dead store in EVP_DecryptFinal_ex
authorCoolThi <xchy233@gmail.com>
Wed, 29 May 2024 10:24:56 +0000 (18:24 +0800)
committerTomas Mraz <tomas@openssl.org>
Thu, 30 May 2024 17:04:05 +0000 (19:04 +0200)
CLA: trivial

Reviewed-by: Richard Levitte <levitte@openssl.org>
Reviewed-by: Todd Short <todd.short@me.com>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/24526)

crypto/evp/evp_enc.c

index c289b2f7b094e6f8c6e5c24caddf809f6b112b2c..ff59e6b070314457e2dd7c554a893800242b77a4 100644 (file)
@@ -1034,8 +1034,7 @@ int EVP_DecryptFinal_ex(EVP_CIPHER_CTX *ctx, unsigned char *out, int *outl)
         for (i = 0; i < n; i++)
             out[i] = ctx->final[i];
         *outl = n;
-    } else
-        *outl = 0;
+    }
     return 1;
 }