summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorirungentoo <irungentoo@gmail.com>2015-12-08 16:50:18 -0500
committerirungentoo <irungentoo@gmail.com>2015-12-08 16:50:18 -0500
commit4f33b27f6b366426e29068db4a0d87a10a736d43 (patch)
tree3a56385e4d6157472b44638812e74326bcb0dbcd
parent73b2bce08a534ce4e3e1f8b3e9956e359405eff6 (diff)
Fixed DHT bug.
-rw-r--r--toxcore/DHT.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/toxcore/DHT.c b/toxcore/DHT.c
index 6060a9eb..459a6a78 100644
--- a/toxcore/DHT.c
+++ b/toxcore/DHT.c
@@ -748,14 +748,14 @@ static int replace_all( Client_data *list,
748 */ 748 */
749static unsigned int ping_node_from_getnodes_ok(DHT *dht, const uint8_t *public_key) 749static unsigned int ping_node_from_getnodes_ok(DHT *dht, const uint8_t *public_key)
750{ 750{
751 if (store_node_ok(&dht->close_clientlist[0], public_key, dht->self_public_key)) { 751 if (store_node_ok(&dht->close_clientlist[1], public_key, dht->self_public_key)) {
752 return 1; 752 return 1;
753 } 753 }
754 754
755 unsigned int i; 755 unsigned int i;
756 756
757 for (i = 0; i < dht->num_friends; ++i) { 757 for (i = 0; i < dht->num_friends; ++i) {
758 if (store_node_ok(&dht->friends_list[i].client_list[0], public_key, dht->self_public_key)) { 758 if (store_node_ok(&dht->friends_list[i].client_list[1], public_key, dht->self_public_key)) {
759 return 1; 759 return 1;
760 } 760 }
761 } 761 }