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

[or-cvs] We need to call get_connection_array before using its outputs



Update of /home/or/cvsroot/src/or
In directory moria.mit.edu:/tmp/cvs-serv2000/src/or

Modified Files:
	connection.c 
Log Message:
We need to call get_connection_array before using its outputs

Index: connection.c
===================================================================
RCS file: /home/or/cvsroot/src/or/connection.c,v
retrieving revision 1.111
retrieving revision 1.112
diff -u -d -r1.111 -r1.112
--- connection.c	30 Sep 2003 19:06:22 -0000	1.111
+++ connection.c	30 Sep 2003 19:25:16 -0000	1.112
@@ -581,6 +581,7 @@
   connection_t *conn;
   connection_t **carray;
  
+  get_connection_array(&carray,&n);
   for(i=0;i<n;i++) {
     conn = carray[i];
     if(conn->type == type && conn->state == state && !conn->marked_for_close)
@@ -594,6 +595,7 @@
   connection_t *conn, *best=NULL;
   connection_t **carray;
  
+  get_connection_array(&carray,&n);
   for(i=0;i<n;i++) {
     conn = carray[i];
     if(conn->type == type && conn->state == state && !conn->marked_for_close)