X-Git-Url: https://git.distorted.org.uk/~mdw/sgt/putty/blobdiff_plain/170c1e6e0e1c81fb748e0ef8f291a5a92898a1e7..cb1e17e940a656507fa3c1f365de19f44fd5a919:/sshdh.c diff --git a/sshdh.c b/sshdh.c index 92351832..af7eaf82 100644 --- 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_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);