mirror of
https://github.com/irungentoo/toxcore.git
synced 2024-03-22 13:30:51 +08:00
forget DHT pubkey of offline friend after DHT timeout
This commit is contained in:
parent
05c35462f3
commit
0fce3fc94c
|
@ -878,6 +878,7 @@ void do_friend_connections(Friend_Connections *fr_c, void *userdata)
|
||||||
if (friend_con->dht_lock) {
|
if (friend_con->dht_lock) {
|
||||||
DHT_delfriend(fr_c->dht, friend_con->dht_temp_pk, friend_con->dht_lock);
|
DHT_delfriend(fr_c->dht, friend_con->dht_temp_pk, friend_con->dht_lock);
|
||||||
friend_con->dht_lock = 0;
|
friend_con->dht_lock = 0;
|
||||||
|
memset(friend_con->dht_temp_pk, 0, CRYPTO_PUBLIC_KEY_SIZE);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user