diff options
author | Christian Grothoff <christian@grothoff.org> | 2020-04-21 00:36:11 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2020-04-21 00:36:11 +0200 |
commit | 172d6b0c471cd6512b8074d78f59ae9bb8cad9e7 (patch) | |
tree | 6b4f4987563d752ba53ef88b184d328a887f2be0 /src/transport | |
parent | e264221eb629019887019935e7680faa5ec36720 (diff) | |
download | gnunet-172d6b0c471cd6512b8074d78f59ae9bb8cad9e7.tar.gz gnunet-172d6b0c471cd6512b8074d78f59ae9bb8cad9e7.zip |
fix FTBFS issue
Diffstat (limited to 'src/transport')
-rw-r--r-- | src/transport/test_plugin_transport.c | 14 |
1 files 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; | |||
49 | /** | 49 | /** |
50 | * Our private key. | 50 | * Our private key. |
51 | */ | 51 | */ |
52 | static struct GNUNET_CRYPTO_EddsaPrivateKey *my_private_key; | 52 | static struct GNUNET_CRYPTO_EddsaPrivateKey my_private_key; |
53 | 53 | ||
54 | /** | 54 | /** |
55 | * Our configuration. | 55 | * Our configuration. |
@@ -647,16 +647,20 @@ run (void *cls, | |||
647 | } | 647 | } |
648 | 648 | ||
649 | max_connect_per_transport = (uint32_t) tneigh; | 649 | max_connect_per_transport = (uint32_t) tneigh; |
650 | my_private_key = GNUNET_CRYPTO_eddsa_key_create_from_file (keyfile); | 650 | if (GNUNET_SYSERR == |
651 | GNUNET_free (keyfile); | 651 | GNUNET_CRYPTO_eddsa_key_from_file (keyfile, |
652 | if (NULL == my_private_key) | 652 | GNUNET_YES, |
653 | &my_private_key)) | ||
653 | { | 654 | { |
655 | GNUNET_free (keyfile); | ||
654 | GNUNET_log (GNUNET_ERROR_TYPE_ERROR, | 656 | GNUNET_log (GNUNET_ERROR_TYPE_ERROR, |
655 | "Could not access hostkey. Exiting.\n"); | 657 | "Could not access hostkey. Exiting.\n"); |
656 | end_badly_now (); | 658 | end_badly_now (); |
657 | return; | 659 | return; |
658 | } | 660 | } |
659 | GNUNET_CRYPTO_eddsa_key_get_public (my_private_key, &my_identity.public_key); | 661 | GNUNET_free (keyfile); |
662 | GNUNET_CRYPTO_eddsa_key_get_public (&my_private_key, | ||
663 | &my_identity.public_key); | ||
660 | 664 | ||
661 | hello = GNUNET_HELLO_create (&my_identity.public_key, NULL, NULL, GNUNET_NO); | 665 | hello = GNUNET_HELLO_create (&my_identity.public_key, NULL, NULL, GNUNET_NO); |
662 | 666 | ||