diff options
author | Nick Mathewson <nickm@torproject.org> | 2003-09-30 19:25:16 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2003-09-30 19:25:16 +0000 |
commit | d0273ee135773fbb1e3094f2f29fb04a4ed32f94 (patch) | |
tree | 5b69bde07f64662e8f5fa71a0f0184414868e8a9 /src/or | |
parent | 2da3e4da0d2bf7ddde416f634c6e2a2d2445f861 (diff) | |
download | tor-d0273ee135773fbb1e3094f2f29fb04a4ed32f94.tar tor-d0273ee135773fbb1e3094f2f29fb04a4ed32f94.tar.gz |
We need to call get_connection_array before using its outputs
svn:r513
Diffstat (limited to 'src/or')
-rw-r--r-- | src/or/connection.c | 2 |
1 files changed, 2 insertions, 0 deletions
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;i<n;i++) { conn = carray[i]; if(conn->type == 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;i<n;i++) { conn = carray[i]; if(conn->type == type && conn->state == state && !conn->marked_for_close) |