summaryrefslogtreecommitdiffstats
path: root/crypto/bn
diff options
context:
space:
mode:
authorBilly Brumley <bbrumley@gmail.com>2022-06-10 00:03:23 +0300
committerTomas Mraz <tomas@openssl.org>2022-11-21 10:49:52 +0100
commitd8813ae09a2a29bcd9a9cf2f4ed9485f8801e0e2 (patch)
tree5c100f90c75c114521312b788be02aa726705d4e /crypto/bn
parent03b825f74f429ede35f86f196553460810922746 (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) (cherry picked from commit a644cb7c1c19c78e2ca393c8ca36989e7ca61715)
Diffstat (limited to 'crypto/bn')
-rw-r--r--crypto/bn/bn_lib.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/crypto/bn/bn_lib.c b/crypto/bn/bn_lib.c
index 7ad6842560..69d3b6985c 100644
--- a/crypto/bn/bn_lib.c
+++ b/crypto/bn/bn_lib.c
@@ -829,9 +829,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);