diff options
-rw-r--r-- | core/DHT.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -206,7 +206,7 @@ int get_close_nodes(uint8_t * client_id, Node_format * nodes_list) | |||
206 | } | 206 | } |
207 | else for(k = 0; k < MAX_SENT_NODES; k++) | 207 | else for(k = 0; k < MAX_SENT_NODES; k++) |
208 | { | 208 | { |
209 | if(id_closest(client_id, nodes_list[k].client_id, friends_list[i].client_list[j].client_id) == 2) | 209 | if(id_closest(friends_list[i].client_id, nodes_list[k].client_id, friends_list[i].client_list[j].client_id) == 2) |
210 | { | 210 | { |
211 | memcpy(nodes_list[k].client_id, friends_list[i].client_list[j].client_id, CLIENT_ID_SIZE); | 211 | memcpy(nodes_list[k].client_id, friends_list[i].client_list[j].client_id, CLIENT_ID_SIZE); |
212 | nodes_list[k].ip_port = friends_list[i].client_list[j].ip_port; | 212 | nodes_list[k].ip_port = friends_list[i].client_list[j].ip_port; |