summaryrefslogtreecommitdiff
path: root/toxcore/Messenger.c
diff options
context:
space:
mode:
Diffstat (limited to 'toxcore/Messenger.c')
-rw-r--r--toxcore/Messenger.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/toxcore/Messenger.c b/toxcore/Messenger.c
index 2f0bde29..3bc9f211 100644
--- a/toxcore/Messenger.c
+++ b/toxcore/Messenger.c
@@ -2214,9 +2214,12 @@ static int messenger_load_state_callback(void *outer, uint8_t *data, uint32_t le
2214 if (length == crypto_box_PUBLICKEYBYTES + crypto_box_SECRETKEYBYTES + sizeof(uint32_t)) { 2214 if (length == crypto_box_PUBLICKEYBYTES + crypto_box_SECRETKEYBYTES + sizeof(uint32_t)) {
2215 set_nospam(&(m->fr), *(uint32_t *)data); 2215 set_nospam(&(m->fr), *(uint32_t *)data);
2216 load_keys(m->net_crypto, &data[sizeof(uint32_t)]); 2216 load_keys(m->net_crypto, &data[sizeof(uint32_t)]);
2217#ifdef ENABLE_ASSOC_DHT
2217 2218
2218 if (m->dht->assoc) 2219 if (m->dht->assoc)
2219 Assoc_self_client_id_changed(m->dht->assoc, m->net_crypto->self_public_key); 2220 Assoc_self_client_id_changed(m->dht->assoc, m->net_crypto->self_public_key);
2221
2222#endif
2220 } else 2223 } else
2221 return -1; /* critical */ 2224 return -1; /* critical */
2222 2225