projects
/
u
/
mdw
/
putty
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
uint64_decimal() incorrectly output 0 as "" instead of "0". This only affected
[u/mdw/putty]
/
sshdh.c
diff --git
a/sshdh.c
b/sshdh.c
index
9235183
..
af7eaf8
100644
(file)
--- a/
sshdh.c
+++ b/
sshdh.c
@@
-123,7
+123,7
@@
Bignum dh_create_e(void *handle, int nbits)
ssh1_write_bignum(buf, ctx->qmask);
for (i = 2; i < nbytes; i++)
buf[i] &= random_byte();
ssh1_write_bignum(buf, ctx->qmask);
for (i = 2; i < nbytes; i++)
buf[i] &= random_byte();
- ssh1_read_bignum(buf,
&ctx->x);
+ ssh1_read_bignum(buf,
nbytes, &ctx->x); /* can't fail */
} else {
int b, nb;
ctx->x = bn_power_2(nbits);
} else {
int b, nb;
ctx->x = bn_power_2(nbits);