diff --git a/src/or/connection.c b/src/or/connection.c index 61b6cb0c8a..a0fea8c705 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)