diff options
Diffstat (limited to 'src/lib/libcrypto/bn/bn_mul.c')
-rw-r--r-- | src/lib/libcrypto/bn/bn_mul.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/libcrypto/bn/bn_mul.c b/src/lib/libcrypto/bn/bn_mul.c index 3e8baaad9a..3e8d8b9567 100644 --- a/src/lib/libcrypto/bn/bn_mul.c +++ b/src/lib/libcrypto/bn/bn_mul.c | |||
@@ -631,7 +631,6 @@ int BN_mul(BIGNUM *r, BIGNUM *a, BIGNUM *b, BN_CTX *ctx) | |||
631 | 631 | ||
632 | al=a->top; | 632 | al=a->top; |
633 | bl=b->top; | 633 | bl=b->top; |
634 | r->neg=a->neg^b->neg; | ||
635 | 634 | ||
636 | if ((al == 0) || (bl == 0)) | 635 | if ((al == 0) || (bl == 0)) |
637 | { | 636 | { |
@@ -647,6 +646,7 @@ int BN_mul(BIGNUM *r, BIGNUM *a, BIGNUM *b, BN_CTX *ctx) | |||
647 | } | 646 | } |
648 | else | 647 | else |
649 | rr = r; | 648 | rr = r; |
649 | rr->neg=a->neg^b->neg; | ||
650 | 650 | ||
651 | #if defined(BN_MUL_COMBA) || defined(BN_RECURSION) | 651 | #if defined(BN_MUL_COMBA) || defined(BN_RECURSION) |
652 | i = al-bl; | 652 | i = al-bl; |