diff options
author | irungentoo <irungentoo@gmail.com> | 2015-12-11 17:21:39 -0500 |
---|---|---|
committer | irungentoo <irungentoo@gmail.com> | 2015-12-11 17:21:39 -0500 |
commit | 5fe8429da8dfb15cb5ff25118886c48d71d2d251 (patch) | |
tree | 57de3936857b6f882d5c9fb968a20606e3048fdc | |
parent | 22b1ebb46e5470d919e1f6896c99a82c29b443d3 (diff) |
DHT fix.
-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 | } |