From 11e18d71c9723ac6c77403db48f6b4d497edac5f Mon Sep 17 00:00:00 2001 From: nfkd Date: Fri, 26 Jul 2013 22:42:33 -0300 Subject: [PATCH] Update DHT.c --- core/DHT.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/DHT.c b/core/DHT.c index 3db5a0c4..71abea2a 100644 --- a/core/DHT.c +++ b/core/DHT.c @@ -267,14 +267,14 @@ void returnedip_ports(IP_Port ip_port, uint8_t * client_id, uint8_t * nodeclient { uint32_t i, j; uint32_t temp_time = unix_time(); - if(memcmp(client_id, self_public_key, CLIENT_ID_SIZE) == 0) + if(memcmp(client_id, self_public_key, CLIENT_ID_SIZE) == 0) { for(i = 0; i < LCLIENT_LIST; ++i) if(memcmp(nodeclient_id, close_clientlist[i].client_id, CLIENT_ID_SIZE) == 0) { close_clientlist[i].ret_ip_port = ip_port; close_clientlist[i].ret_timestamp = temp_time; return; } - else + } else for(i = 0; i < num_friends; ++i) if(memcmp(client_id, friends_list[i].client_id, CLIENT_ID_SIZE) == 0) for(j = 0; j < MAX_FRIEND_CLIENTS; ++j)