]> asedeno.scripts.mit.edu Git - PuTTY.git/blobdiff - sshdh.c
Be proactively pedantic about channel-close irregularities: we no
[PuTTY.git] / sshdh.c
diff --git a/sshdh.c b/sshdh.c
index edd05b68b8c8701ba85f454d76e5e90e98b3be59..7a1772b88bcabaa678ee01d40ab24a73fab7d12c 100644 (file)
--- a/sshdh.c
+++ b/sshdh.c
@@ -34,7 +34,6 @@ static unsigned char G[] = { 2 };
  * Variables.
  */
 static Bignum x, e, p, q, qmask, g;
-static int need_to_free_pg;
 
 /*
  * Common DH initialisation.
@@ -116,7 +115,7 @@ Bignum dh_create_e(int nbits)
        } else {
            int b, nb;
            x = bn_power_2(nbits);
-           nb = 0;
+           b = nb = 0;
            for (i = 0; i < nbits; i++) {
                if (nb == 0) {
                    nb = 8;