diff options
author | doug <> | 2015-03-21 08:05:20 +0000 |
---|---|---|
committer | doug <> | 2015-03-21 08:05:20 +0000 |
commit | 2898b0c3a5e1e7f791f70cf4578bb2486c0612fa (patch) | |
tree | c3416a85e2e2b40bd36b2e8e612c00007e05c003 /src/lib/libcrypto/bn/bn_exp.c | |
parent | c12f0e8171f2b611dd77254adddc73b4b515947e (diff) | |
download | openbsd-2898b0c3a5e1e7f791f70cf4578bb2486c0612fa.tar.gz openbsd-2898b0c3a5e1e7f791f70cf4578bb2486c0612fa.tar.bz2 openbsd-2898b0c3a5e1e7f791f70cf4578bb2486c0612fa.zip |
Fix indentation that incorrectly implies a different control flow.
The actual control flow is intentional while the indenting is incorrect.
This is intended to be a cosmetic change.
Verified that each of these was part of a KNF commit that wasn't intending
to change behavior. Also, double checked against the history of changes in
OpenSSL and BoringSSL.
Addresses Coverity CIDs: 78842, 78859, 78863.
ok tedu@
Diffstat (limited to 'src/lib/libcrypto/bn/bn_exp.c')
-rw-r--r-- | src/lib/libcrypto/bn/bn_exp.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/lib/libcrypto/bn/bn_exp.c b/src/lib/libcrypto/bn/bn_exp.c index 12de0c5a12..4a28c2c605 100644 --- a/src/lib/libcrypto/bn/bn_exp.c +++ b/src/lib/libcrypto/bn/bn_exp.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: bn_exp.c,v 1.21 2015/02/14 15:13:24 miod Exp $ */ | 1 | /* $OpenBSD: bn_exp.c,v 1.22 2015/03/21 08:05:20 doug Exp $ */ |
2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) | 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) |
3 | * All rights reserved. | 3 | * All rights reserved. |
4 | * | 4 | * |
@@ -874,7 +874,8 @@ BN_mod_exp_mont_word(BIGNUM *rr, BN_ULONG a, const BIGNUM *p, const BIGNUM *m, | |||
874 | } | 874 | } |
875 | if (m->top == 1) | 875 | if (m->top == 1) |
876 | a %= m->d[0]; /* make sure that 'a' is reduced */ | 876 | a %= m->d[0]; /* make sure that 'a' is reduced */ |
877 | bits = BN_num_bits(p); | 877 | |
878 | bits = BN_num_bits(p); | ||
878 | if (bits == 0) { | 879 | if (bits == 0) { |
879 | ret = BN_one(rr); | 880 | ret = BN_one(rr); |
880 | return ret; | 881 | return ret; |