diff options
-rw-r--r-- | toxcore/friend_connection.c | 1 |
1 files changed, 1 insertions, 0 deletions
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) | |||
878 | if (friend_con->dht_lock) { | 878 | if (friend_con->dht_lock) { |
879 | DHT_delfriend(fr_c->dht, friend_con->dht_temp_pk, friend_con->dht_lock); | 879 | DHT_delfriend(fr_c->dht, friend_con->dht_temp_pk, friend_con->dht_lock); |
880 | friend_con->dht_lock = 0; | 880 | friend_con->dht_lock = 0; |
881 | memset(friend_con->dht_temp_pk, 0, CRYPTO_PUBLIC_KEY_SIZE); | ||
881 | } | 882 | } |
882 | } | 883 | } |
883 | 884 | ||