From: CoolThi Date: Wed, 29 May 2024 10:24:56 +0000 (+0800) Subject: Remove the dead store in EVP_DecryptFinal_ex X-Git-Tag: openssl-3.4.0-alpha1~498 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=9fcf57b45985336b04579dd317d0dc990a9c062b;p=thirdparty%2Fopenssl.git Remove the dead store in EVP_DecryptFinal_ex CLA: trivial Reviewed-by: Richard Levitte Reviewed-by: Todd Short Reviewed-by: Tomas Mraz (Merged from https://github.com/openssl/openssl/pull/24526) --- diff --git a/crypto/evp/evp_enc.c b/crypto/evp/evp_enc.c index c289b2f7b09..ff59e6b0703 100644 --- a/crypto/evp/evp_enc.c +++ b/crypto/evp/evp_enc.c @@ -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; }