From 5fe8429da8dfb15cb5ff25118886c48d71d2d251 Mon Sep 17 00:00:00 2001 From: irungentoo Date: Fri, 11 Dec 2015 17:21:39 -0500 Subject: [PATCH] DHT fix. --- toxcore/DHT.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/toxcore/DHT.c b/toxcore/DHT.c index 3b7d2da5..2220b1d7 100644 --- a/toxcore/DHT.c +++ b/toxcore/DHT.c @@ -792,11 +792,11 @@ static unsigned int ping_node_from_getnodes_ok(DHT *dht, const uint8_t *public_k unsigned int i; for (i = 0; i < dht->num_friends; ++i) { - if (store_node_ok(&dht->friends_list[i].client_list[1], public_key, dht->self_public_key)) { + if (store_node_ok(&dht->friends_list[i].client_list[1], public_key, dht->friends_list[i].public_key)) { return 1; } - 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[0], public_key, dht->friends_list[i].public_key)) { return 1; } }