diff options
Diffstat (limited to 'toxcore/DHT.c')
-rw-r--r-- | toxcore/DHT.c | 4 |
1 files 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 | |||
792 | unsigned int i; | 792 | unsigned int i; |
793 | 793 | ||
794 | for (i = 0; i < dht->num_friends; ++i) { | 794 | for (i = 0; i < dht->num_friends; ++i) { |
795 | if (store_node_ok(&dht->friends_list[i].client_list[1], public_key, dht->self_public_key)) { | 795 | if (store_node_ok(&dht->friends_list[i].client_list[1], public_key, dht->friends_list[i].public_key)) { |
796 | return 1; | 796 | return 1; |
797 | } | 797 | } |
798 | 798 | ||
799 | if (store_node_ok(&dht->friends_list[i].client_list[0], public_key, dht->self_public_key)) { | 799 | if (store_node_ok(&dht->friends_list[i].client_list[0], public_key, dht->friends_list[i].public_key)) { |
800 | return 1; | 800 | return 1; |
801 | } | 801 | } |
802 | } | 802 | } |