From d0273ee135773fbb1e3094f2f29fb04a4ed32f94 Mon Sep 17 00:00:00 2001 From: Nick Mathewson Date: Tue, 30 Sep 2003 19:25:16 +0000 Subject: We need to call get_connection_array before using its outputs svn:r513 --- src/or/connection.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/or') diff --git a/src/or/connection.c b/src/or/connection.c index 61b6cb0c8..a0fea8c70 100644 --- a/src/or/connection.c +++ b/src/or/connection.c @@ -581,6 +581,7 @@ connection_t *connection_get_by_type_state(int type, int state) { connection_t *conn; connection_t **carray; + get_connection_array(&carray,&n); for(i=0;itype == type && conn->state == state && !conn->marked_for_close) @@ -594,6 +595,7 @@ connection_t *connection_get_by_type_state_lastwritten(int type, int state) { connection_t *conn, *best=NULL; connection_t **carray; + get_connection_array(&carray,&n); for(i=0;itype == type && conn->state == state && !conn->marked_for_close) -- cgit v1.2.3