diff options
author | zugz <mbays+tox@sdf.org> | 2017-11-19 16:45:45 +0100 |
---|---|---|
committer | Robin Lindén <dev@robinlinden.eu> | 2017-11-20 22:45:12 +0100 |
commit | 0fce3fc94cac81c8eb8eda52dfb281ccc992d5bf (patch) | |
tree | 1dfe996091a7ea48c1239baf3c10856bf28ba2bf /toxcore/friend_connection.c | |
parent | 05c35462f3228e4814a29409bed38dcf76afcab3 (diff) |
forget DHT pubkey of offline friend after DHT timeout
Diffstat (limited to 'toxcore/friend_connection.c')
-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 | ||