summaryrefslogtreecommitdiff
path: root/other
diff options
context:
space:
mode:
authorAnthony Bilinski <me@abilinski.com>2018-04-19 19:02:11 -0700
committerRobin Lindén <dev@robinlinden.eu>2018-05-10 18:06:13 +0200
commit291a849a5a0afb4450bcd0d0c50b7aeccaac04f5 (patch)
tree12e81923da46fe34b1229ace04eadb463e1ada4a /other
parent91f65354a28065c6037c0d7b5829a1250dc1d7a6 (diff)
fix DHT_bootstrap key loading
Introduced by 643eea60bb9dcf4ecb33d64666b1bc77cbfd7438
Diffstat (limited to 'other')
-rw-r--r--other/DHT_bootstrap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/other/DHT_bootstrap.c b/other/DHT_bootstrap.c
index 5f04e415..60298544 100644
--- a/other/DHT_bootstrap.c
+++ b/other/DHT_bootstrap.c
@@ -71,7 +71,7 @@ static void manage_keys(DHT *dht)
71 } 71 }
72 72
73 dht_set_self_public_key(dht, keys); 73 dht_set_self_public_key(dht, keys);
74 dht_set_self_public_key(dht, keys + CRYPTO_PUBLIC_KEY_SIZE); 74 dht_set_self_secret_key(dht, keys + CRYPTO_PUBLIC_KEY_SIZE);
75 printf("Keys loaded successfully.\n"); 75 printf("Keys loaded successfully.\n");
76 } else { 76 } else {
77 memcpy(keys, dht_get_self_public_key(dht), CRYPTO_PUBLIC_KEY_SIZE); 77 memcpy(keys, dht_get_self_public_key(dht), CRYPTO_PUBLIC_KEY_SIZE);