Skip to content
Snippets Groups Projects
Commit d0273ee1 authored by Nick Mathewson's avatar Nick Mathewson :game_die:
Browse files

We need to call get_connection_array before using its outputs

svn:r513
parent 2da3e4da
No related branches found
No related tags found
No related merge requests found
......@@ -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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment