diff options
author | nfkd <nfkd@koszmial.pl> | 2013-07-26 22:42:33 -0300 |
---|---|---|
committer | nfkd <nfkd@koszmial.pl> | 2013-07-26 22:42:33 -0300 |
commit | 11e18d71c9723ac6c77403db48f6b4d497edac5f (patch) | |
tree | abf9ecb93a95049a2426929fa478e08f125ca006 /core/DHT.c | |
parent | c9063cf24a37540f47f88dcad19e689312e5a80d (diff) |
Update DHT.c
Diffstat (limited to 'core/DHT.c')
-rw-r--r-- | core/DHT.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -267,14 +267,14 @@ void returnedip_ports(IP_Port ip_port, uint8_t * client_id, uint8_t * nodeclient | |||
267 | { | 267 | { |
268 | uint32_t i, j; | 268 | uint32_t i, j; |
269 | uint32_t temp_time = unix_time(); | 269 | uint32_t temp_time = unix_time(); |
270 | if(memcmp(client_id, self_public_key, CLIENT_ID_SIZE) == 0) | 270 | if(memcmp(client_id, self_public_key, CLIENT_ID_SIZE) == 0) { |
271 | for(i = 0; i < LCLIENT_LIST; ++i) | 271 | for(i = 0; i < LCLIENT_LIST; ++i) |
272 | if(memcmp(nodeclient_id, close_clientlist[i].client_id, CLIENT_ID_SIZE) == 0) { | 272 | if(memcmp(nodeclient_id, close_clientlist[i].client_id, CLIENT_ID_SIZE) == 0) { |
273 | close_clientlist[i].ret_ip_port = ip_port; | 273 | close_clientlist[i].ret_ip_port = ip_port; |
274 | close_clientlist[i].ret_timestamp = temp_time; | 274 | close_clientlist[i].ret_timestamp = temp_time; |
275 | return; | 275 | return; |
276 | } | 276 | } |
277 | else | 277 | } else |
278 | for(i = 0; i < num_friends; ++i) | 278 | for(i = 0; i < num_friends; ++i) |
279 | if(memcmp(client_id, friends_list[i].client_id, CLIENT_ID_SIZE) == 0) | 279 | if(memcmp(client_id, friends_list[i].client_id, CLIENT_ID_SIZE) == 0) |
280 | for(j = 0; j < MAX_FRIEND_CLIENTS; ++j) | 280 | for(j = 0; j < MAX_FRIEND_CLIENTS; ++j) |