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:
f18ea6c
)
Actually, that last change to BN_get_word() was a little too simple.
author
Geoff Thorpe
<geoff@openssl.org>
Thu, 17 Jun 2004 22:05:40 +0000
(22:05 +0000)
committer
Geoff Thorpe
<geoff@openssl.org>
Thu, 17 Jun 2004 22:05:40 +0000
(22:05 +0000)
crypto/bn/bn_lib.c
patch
|
blob
|
history
diff --git
a/crypto/bn/bn_lib.c
b/crypto/bn/bn_lib.c
index 8aa817dfc682fbb1eaed064bf5be9fd057ea2cc4..bbc359cb7859eb88bd9161c7dfbb44304e902fc4 100644
(file)
--- a/
crypto/bn/bn_lib.c
+++ b/
crypto/bn/bn_lib.c
@@
-618,8
+618,10
@@
BN_ULONG BN_get_word(const BIGNUM *a)
{
if (a->top > 1)
return BN_MASK2;
- else
+ else
if (a->top == 1)
return a->d[0];
+ /* a->top == 0 */
+ return 0;
}
int BN_set_word(BIGNUM *a, BN_ULONG w)