From: Nick Mathewson Date: Tue, 30 Sep 2003 19:25:16 +0000 (+0000) Subject: We need to call get_connection_array before using its outputs X-Git-Tag: tor-0.0.2pre13~118 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=d0273ee135773fbb1e3094f2f29fb04a4ed32f94;p=thirdparty%2Ftor.git We need to call get_connection_array before using its outputs svn:r513 --- 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)