[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[gnunet] 01/02: fix FTBFS issue
From: |
gnunet |
Subject: |
[gnunet] 01/02: fix FTBFS issue |
Date: |
Tue, 21 Apr 2020 00:59:34 +0200 |
This is an automated email from the git hooks/post-receive script.
grothoff pushed a commit to branch master
in repository gnunet.
commit 172d6b0c471cd6512b8074d78f59ae9bb8cad9e7
Author: Christian Grothoff <address@hidden>
AuthorDate: Tue Apr 21 00:36:11 2020 +0200
fix FTBFS issue
---
src/transport/test_plugin_transport.c | 14 +++++++++-----
1 file changed, 9 insertions(+), 5 deletions(-)
diff --git a/src/transport/test_plugin_transport.c
b/src/transport/test_plugin_transport.c
index 10e07dae5..04687d845 100644
--- a/src/transport/test_plugin_transport.c
+++ b/src/transport/test_plugin_transport.c
@@ -49,7 +49,7 @@ static struct GNUNET_PeerIdentity my_identity;
/**
* Our private key.
*/
-static struct GNUNET_CRYPTO_EddsaPrivateKey *my_private_key;
+static struct GNUNET_CRYPTO_EddsaPrivateKey my_private_key;
/**
* Our configuration.
@@ -647,16 +647,20 @@ run (void *cls,
}
max_connect_per_transport = (uint32_t) tneigh;
- my_private_key = GNUNET_CRYPTO_eddsa_key_create_from_file (keyfile);
- GNUNET_free (keyfile);
- if (NULL == my_private_key)
+ if (GNUNET_SYSERR ==
+ GNUNET_CRYPTO_eddsa_key_from_file (keyfile,
+ GNUNET_YES,
+ &my_private_key))
{
+ GNUNET_free (keyfile);
GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
"Could not access hostkey. Exiting.\n");
end_badly_now ();
return;
}
- GNUNET_CRYPTO_eddsa_key_get_public (my_private_key, &my_identity.public_key);
+ GNUNET_free (keyfile);
+ GNUNET_CRYPTO_eddsa_key_get_public (&my_private_key,
+ &my_identity.public_key);
hello = GNUNET_HELLO_create (&my_identity.public_key, NULL, NULL, GNUNET_NO);
--
To stop receiving notification emails like this one, please contact
address@hidden.