diff options
-rw-r--r-- | src/mesh/gnunet-mesh.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/mesh/gnunet-mesh.c b/src/mesh/gnunet-mesh.c index bef8b75ac..6faee5cb0 100644 --- a/src/mesh/gnunet-mesh.c +++ b/src/mesh/gnunet-mesh.c | |||
@@ -106,7 +106,20 @@ shutdown_task (void *cls, | |||
106 | static void | 106 | static void |
107 | create_channel (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) | 107 | create_channel (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) |
108 | { | 108 | { |
109 | struct GNUNET_PeerIdentity pid; | ||
109 | 110 | ||
111 | if (GNUNET_OK != | ||
112 | GNUNET_CRYPTO_eddsa_public_key_from_string (target_id, | ||
113 | strlen (target_id), | ||
114 | &pid.public_key)) | ||
115 | { | ||
116 | FPRINTF (stderr, | ||
117 | _("Invalid target `%s'\n"), | ||
118 | target_id); | ||
119 | GNUNET_SCHEDULER_shutdown(); | ||
120 | return; | ||
121 | } | ||
122 | // GNUNET_MESH_channel_create () | ||
110 | } | 123 | } |
111 | 124 | ||
112 | 125 | ||