[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[or-cvs] backport:oops, that array got bigger



Update of /home/or/cvsroot/tor/src/common
In directory moria:/tmp/cvs-serv13146/src/common

Modified Files:
      Tag: tor-0_1_0-patches
	crypto.c 
Log Message:
backport:oops, that array got bigger

Index: crypto.c
===================================================================
RCS file: /home/or/cvsroot/tor/src/common/crypto.c,v
retrieving revision 1.137.2.3
retrieving revision 1.137.2.4
diff -u -d -r1.137.2.3 -r1.137.2.4
--- crypto.c	4 Aug 2005 23:15:05 -0000	1.137.2.3
+++ crypto.c	4 Aug 2005 23:19:23 -0000	1.137.2.4
@@ -1224,7 +1224,7 @@
 static BIGNUM *dh_param_p = NULL;
 /** Shared G parameter for our DH key exchanges. */
 static BIGNUM *dh_param_g = NULL;
-#define N_XX_GX 8
+#define N_XX_GX 10
 static BIGNUM *dh_gx_xx[N_XX_GX];
 
 /** Initialize dh_param_p and dh_param_g if they are not already
@@ -1277,7 +1277,7 @@
   dh_param_g = g;
 
   ctx = BN_CTX_new();
-  for (i=0; i<4; ++i) {
+  for (i=0; i<5; ++i) {
     BIGNUM *x = BN_new(), *g_x = BN_new();
     char *x_s, *g_x_s;
     BN_copy(x, dh_param_p);