mirror of
https://github.com/TokTok/c-toxcore
synced 2026-06-03 01:54:45 +00:00
forget DHT pubkey of offline friend after DHT timeout
This commit is contained in:
@@ -878,6 +878,7 @@ void do_friend_connections(Friend_Connections *fr_c, void *userdata)
|
||||
if (friend_con->dht_lock) {
|
||||
DHT_delfriend(fr_c->dht, friend_con->dht_temp_pk, friend_con->dht_lock);
|
||||
friend_con->dht_lock = 0;
|
||||
memset(friend_con->dht_temp_pk, 0, CRYPTO_PUBLIC_KEY_SIZE);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user