[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
- To: or-cvs@freehaven.net
- Subject: [or-cvs] We need to call get_connection_array before using its outputs
- From: nickm@seul.org (Nick Mathewson)
- Date: Tue, 30 Sep 2003 15:25:18 -0400 (EDT)
- Delivered-to: archiver@seul.org
- Delivered-to: or-cvs-outgoing@seul.org
- Delivered-to: or-cvs@seul.org
- Delivery-date: Tue, 30 Sep 2003 15:25:34 -0400
- Reply-to: or-dev@freehaven.net
- Sender: owner-or-cvs@freehaven.net
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)