diff options
author | Billy Brumley <bbrumley@gmail.com> | 2022-06-10 00:03:23 +0300 |
---|---|---|
committer | Tomas Mraz <tomas@openssl.org> | 2022-06-13 10:50:44 +0200 |
commit | a644cb7c1c19c78e2ca393c8ca36989e7ca61715 (patch) | |
tree | 40720091f8594215730f473138e79817813464b5 /crypto | |
parent | 926c698c6f0a197e0322d4617db0ecd0d40f6e06 (diff) |
[crypto/bn] BN_consttime_swap: remove superfluous early exit
Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Paul Dale <pauli@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/18518)
Diffstat (limited to 'crypto')
-rw-r--r-- | crypto/bn/bn_lib.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/crypto/bn/bn_lib.c b/crypto/bn/bn_lib.c index 23a4415fb9..089b23963d 100644 --- a/crypto/bn/bn_lib.c +++ b/crypto/bn/bn_lib.c @@ -910,9 +910,6 @@ void BN_consttime_swap(BN_ULONG condition, BIGNUM *a, BIGNUM *b, int nwords) BN_ULONG t; int i; - if (a == b) - return; - bn_wcheck_size(a, nwords); bn_wcheck_size(b, nwords); |