From 4f33b27f6b366426e29068db4a0d87a10a736d43 Mon Sep 17 00:00:00 2001 From: irungentoo Date: Tue, 8 Dec 2015 16:50:18 -0500 Subject: Fixed DHT bug. --- toxcore/DHT.c | 4 ++-- 1 file 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, */ static unsigned int ping_node_from_getnodes_ok(DHT *dht, const uint8_t *public_key) { - if (store_node_ok(&dht->close_clientlist[0], public_key, dht->self_public_key)) { + if (store_node_ok(&dht->close_clientlist[1], public_key, dht->self_public_key)) { return 1; } unsigned int i; for (i = 0; i < dht->num_friends; ++i) { - if (store_node_ok(&dht->friends_list[i].client_list[0], public_key, dht->self_public_key)) { + if (store_node_ok(&dht->friends_list[i].client_list[1], public_key, dht->self_public_key)) { return 1; } } -- cgit v1.2.3