From 0fce3fc94cac81c8eb8eda52dfb281ccc992d5bf Mon Sep 17 00:00:00 2001 From: zugz Date: Sun, 19 Nov 2017 16:45:45 +0100 Subject: [PATCH] forget DHT pubkey of offline friend after DHT timeout --- toxcore/friend_connection.c | 1 + 1 file changed, 1 insertion(+) diff --git a/toxcore/friend_connection.c b/toxcore/friend_connection.c index 2610c13f..9f0677b1 100644 --- a/toxcore/friend_connection.c +++ b/toxcore/friend_connection.c @@ -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); } }