summaryrefslogtreecommitdiff
path: root/proxy.c
diff options
context:
space:
mode:
authorerdgeist <>2010-08-15 14:54:40 +0000
committererdgeist <>2010-08-15 14:54:40 +0000
commit470a690e0dfe4df04ca836a352871247afcd7c08 (patch)
tree30fcf19bad31481fc90beb929e6081744915c6cf /proxy.c
parent4b3189eb44bbb991dc706dc9b5ef9cd9b27a7455 (diff)
Don't only walk through outgoing connections to search for connected peers
Diffstat (limited to 'proxy.c')
-rw-r--r--proxy.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/proxy.c b/proxy.c
index c65c0b8..3058bb6 100644
--- a/proxy.c
+++ b/proxy.c
@@ -713,7 +713,7 @@ unlock_continue:
713 if( ptr_a > ptr_c ) ptr_c = ptr_a; 713 if( ptr_a > ptr_c ) ptr_c = ptr_a;
714 mem = ptr_c - ptr; 714 mem = ptr_c - ptr;
715 715
716 for( i=0; i < g_connection_count; ++i ) { 716 for( i=0; i < MAX_PEERS; ++i ) {
717 if( PROXYPEER_ISCONNECTED(g_connections[i].state) ) { 717 if( PROXYPEER_ISCONNECTED(g_connections[i].state) ) {
718 void *tmp = malloc( mem ); 718 void *tmp = malloc( mem );
719 if( tmp ) { 719 if( tmp ) {