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