From 809bd81d5c66c5e151ce7c38be1624f2f053547a Mon Sep 17 00:00:00 2001 From: Simon Tatham Date: Tue, 24 Oct 2000 21:43:39 +0000 Subject: [PATCH] Fix another bignum formatting problem. This one hit Diffie-Hellmann [originally from svn r761] --- ssh.c | 1 + 1 file changed, 1 insertion(+) diff --git a/ssh.c b/ssh.c index 524a7504..7c4caa57 100644 --- a/ssh.c +++ b/ssh.c @@ -849,6 +849,7 @@ static Bignum ssh2_pkt_getmp(void) { else b[j/2+1] |= ((unsigned char)p[i]); } + while (b[0] > 1 && b[b[0]] == 0) b[0]--; return b; }