diff options
Diffstat (limited to 'toxcore/tox.c')
-rw-r--r-- | toxcore/tox.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/toxcore/tox.c b/toxcore/tox.c index 2fd478dc..a1f850d1 100644 --- a/toxcore/tox.c +++ b/toxcore/tox.c | |||
@@ -1519,7 +1519,7 @@ void tox_self_get_dht_id(const Tox *tox, uint8_t *dht_id) | |||
1519 | { | 1519 | { |
1520 | if (dht_id) { | 1520 | if (dht_id) { |
1521 | const Messenger *m = tox; | 1521 | const Messenger *m = tox; |
1522 | memcpy(dht_id, m->dht->self_public_key, CRYPTO_PUBLIC_KEY_SIZE); | 1522 | memcpy(dht_id, dht_get_self_public_key(m->dht), CRYPTO_PUBLIC_KEY_SIZE); |
1523 | } | 1523 | } |
1524 | } | 1524 | } |
1525 | 1525 | ||