From 291a849a5a0afb4450bcd0d0c50b7aeccaac04f5 Mon Sep 17 00:00:00 2001 From: Anthony Bilinski Date: Thu, 19 Apr 2018 19:02:11 -0700 Subject: fix DHT_bootstrap key loading Introduced by 643eea60bb9dcf4ecb33d64666b1bc77cbfd7438 --- other/DHT_bootstrap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'other') 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) } dht_set_self_public_key(dht, keys); - dht_set_self_public_key(dht, keys + CRYPTO_PUBLIC_KEY_SIZE); + dht_set_self_secret_key(dht, keys + CRYPTO_PUBLIC_KEY_SIZE); printf("Keys loaded successfully.\n"); } else { memcpy(keys, dht_get_self_public_key(dht), CRYPTO_PUBLIC_KEY_SIZE); -- cgit v1.2.3