Skip to content

Commit

Permalink
Remove the dead store in EVP_DecryptFinal_ex
Browse files Browse the repository at this point in the history
CLA: trivial

Reviewed-by: Richard Levitte <[email protected]>
Reviewed-by: Todd Short <[email protected]>
Reviewed-by: Tomas Mraz <[email protected]>
(Merged from openssl#24526)
  • Loading branch information
CoolThi authored and t8m committed May 30, 2024
1 parent 0c73d65 commit 9fcf57b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions crypto/evp/evp_enc.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 9fcf57b

Please sign in to comment.