diff options
Diffstat (limited to 'toxcore/Messenger.c')
-rw-r--r-- | toxcore/Messenger.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/toxcore/Messenger.c b/toxcore/Messenger.c index b5ce2e7e..2c7dcdee 100644 --- a/toxcore/Messenger.c +++ b/toxcore/Messenger.c | |||
@@ -2202,8 +2202,9 @@ void do_friends(Messenger *m) | |||
2202 | friend_new_connection(m, i, m->friendlist[i].client_id); | 2202 | friend_new_connection(m, i, m->friendlist[i].client_id); |
2203 | uint8_t dht_public_key[crypto_box_PUBLICKEYBYTES]; | 2203 | uint8_t dht_public_key[crypto_box_PUBLICKEYBYTES]; |
2204 | 2204 | ||
2205 | if (onion_getfriend_DHT_pubkey(m->onion_c, m->friendlist[i].onion_friendnum, dht_public_key) == 0) { | 2205 | uint64_t timestamp = onion_getfriend_DHT_pubkey(m->onion_c, m->friendlist[i].onion_friendnum, dht_public_key); |
2206 | set_connection_dht_public_key(m->net_crypto, m->friendlist[i].crypt_connection_id, dht_public_key); | 2206 | if (timestamp != 0) { |
2207 | set_connection_dht_public_key(m->net_crypto, m->friendlist[i].crypt_connection_id, dht_public_key, timestamp); | ||
2207 | } | 2208 | } |
2208 | 2209 | ||
2209 | uint8_t direct_connected; | 2210 | uint8_t direct_connected; |