summaryrefslogtreecommitdiffstats
path: root/crypto/bn/bn_div.c
diff options
context:
space:
mode:
authorGeoff Thorpe <geoff@openssl.org>2004-03-13 22:10:15 +0000
committerGeoff Thorpe <geoff@openssl.org>2004-03-13 22:10:15 +0000
commit9e051bac139ce07f846d88b90f3ec514c39ea416 (patch)
tree234a4800454556d58354140cd9d1ced9a56f9478 /crypto/bn/bn_div.c
parent30fbcaa213866426c9f6b9dad01b9885ab760e31 (diff)
Document a change I'd already made, and at the same time, correct the
change to work properly; BN_zero() should set 'neg' to zero as well as 'top' to match the behaviour of BN_new().
Diffstat (limited to 'crypto/bn/bn_div.c')
-rw-r--r--crypto/bn/bn_div.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/crypto/bn/bn_div.c b/crypto/bn/bn_div.c
index 556fcda1e3..3b4392955e 100644
--- a/crypto/bn/bn_div.c
+++ b/crypto/bn/bn_div.c
@@ -214,7 +214,6 @@ int BN_div(BIGNUM *dv, BIGNUM *rm, const BIGNUM *num, const BIGNUM *divisor,
res=BN_CTX_get(ctx);
else res=dv;
if (sdiv == NULL || res == NULL) goto err;
- tmp->neg=0;
/* First we normalise the numbers */
norm_shift=BN_BITS2-((BN_num_bits(divisor))%BN_BITS2);