diff options
-rw-r--r-- | core/DHT.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -756,7 +756,7 @@ IP_Port DHT_getfriendip(uint8_t * client_id) | |||
756 | uint32_t temp_time = unix_time(); | 756 | uint32_t temp_time = unix_time(); |
757 | for(i = 0; i < num_friends; ++i) { | 757 | for(i = 0; i < num_friends; ++i) { |
758 | /* Equal */ | 758 | /* Equal */ |
759 | if(memcmp(friends_list[i].client_id, client_id, CLIENT_ID_SIZE) == 0)1 { | 759 | if(memcmp(friends_list[i].client_id, client_id, CLIENT_ID_SIZE) == 0) { |
760 | for(j = 0; j < MAX_FRIEND_CLIENTS; ++j) { | 760 | for(j = 0; j < MAX_FRIEND_CLIENTS; ++j) { |
761 | if(memcmp(friends_list[i].client_list[j].client_id, client_id, CLIENT_ID_SIZE) == 0 && | 761 | if(memcmp(friends_list[i].client_list[j].client_id, client_id, CLIENT_ID_SIZE) == 0 && |
762 | friends_list[i].client_list[j].timestamp + BAD_NODE_TIMEOUT > temp_time) { | 762 | friends_list[i].client_list[j].timestamp + BAD_NODE_TIMEOUT > temp_time) { |