projects
/
oweals
/
openssl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c3b1424
)
This probably fixes a BN_rshift bug.
author
Bodo Möller
<bodo@openssl.org>
Tue, 13 Jun 2000 15:07:39 +0000
(15:07 +0000)
committer
Bodo Möller
<bodo@openssl.org>
Tue, 13 Jun 2000 15:07:39 +0000
(15:07 +0000)
crypto/bn/bn_shift.c
patch
|
blob
|
history
diff --git
a/crypto/bn/bn_shift.c
b/crypto/bn/bn_shift.c
index 61aae65a6bfce8f86f7e4b358ee54bf16f613baf..0883247384e97a4d8ac9c37f83c4c4a21cb49b96 100644
(file)
--- a/
crypto/bn/bn_shift.c
+++ b/
crypto/bn/bn_shift.c
@@
-162,7
+162,7
@@
int BN_rshift(BIGNUM *r, BIGNUM *a, int n)
nw=n/BN_BITS2;
rb=n%BN_BITS2;
lb=BN_BITS2-rb;
- if (nw > a->top)
+ if (nw > a->top
|| a->top == 0
)
{
BN_zero(r);
return(1);