forget DHT pubkey of offline friend after DHT timeout

This commit is contained in:
zugz 2017-11-19 16:45:45 +01:00 committed by Robin Lindén
parent 05c35462f3
commit 0fce3fc94c
No known key found for this signature in database
GPG Key ID: 601A604B7E605776

View File

@ -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);
}
}