diff options
author | t3sserakt <t3ss@posteo.de> | 2018-06-28 00:58:24 +0200 |
---|---|---|
committer | t3sserakt <t3ss@posteo.de> | 2018-06-28 00:58:24 +0200 |
commit | b294b0e78e44543024f19f197cbac39f86091b88 (patch) | |
tree | 4337413344960af9e1d7a4bbcc248ca43acaf88f /src/cadet | |
parent | e56d5ecd373dd61bedb4f586decd3a19364527a0 (diff) | |
download | gnunet-b294b0e78e44543024f19f197cbac39f86091b88.tar.gz gnunet-b294b0e78e44543024f19f197cbac39f86091b88.zip |
forgot first hop
Diffstat (limited to 'src/cadet')
-rw-r--r-- | src/cadet/gnunet-service-cadet.c | 4 | ||||
-rw-r--r-- | src/cadet/gnunet-service-cadet_peer.c | 10 |
2 files changed, 7 insertions, 7 deletions
diff --git a/src/cadet/gnunet-service-cadet.c b/src/cadet/gnunet-service-cadet.c index dd693731f..8ccf4ae07 100644 --- a/src/cadet/gnunet-service-cadet.c +++ b/src/cadet/gnunet-service-cadet.c | |||
@@ -902,9 +902,9 @@ path_info_iterator (void *cls, | |||
902 | /* Don't copy first peer. First peer is always the local one. Last | 902 | /* Don't copy first peer. First peer is always the local one. Last |
903 | * peer is always the destination (leave as 0, EOL). | 903 | * peer is always the destination (leave as 0, EOL). |
904 | */ | 904 | */ |
905 | for (i = 0; i < off; i++) | 905 | for (i = 0; i <= off; i++) |
906 | id[i] = *GCP_get_id (GCPP_get_peer_at_offset (path, | 906 | id[i] = *GCP_get_id (GCPP_get_peer_at_offset (path, |
907 | i + 1)); | 907 | i)); |
908 | GNUNET_MQ_send (mq, | 908 | GNUNET_MQ_send (mq, |
909 | env); | 909 | env); |
910 | return GNUNET_YES; | 910 | return GNUNET_YES; |
diff --git a/src/cadet/gnunet-service-cadet_peer.c b/src/cadet/gnunet-service-cadet_peer.c index ac1ee59de..09dfcd4d7 100644 --- a/src/cadet/gnunet-service-cadet_peer.c +++ b/src/cadet/gnunet-service-cadet_peer.c | |||
@@ -243,16 +243,16 @@ GCP_2s (const struct CadetPeer *cp) | |||
243 | static char buf[5]; | 243 | static char buf[5]; |
244 | char *ret; | 244 | char *ret; |
245 | 245 | ||
246 | if (NULL == cp || | 246 | if ((NULL == cp) || |
247 | NULL == &cp->pid.public_key){ | 247 | (NULL == &cp->pid.public_key)) |
248 | return "NULL"; | 248 | return "NULL"; |
249 | } | 249 | |
250 | 250 | ||
251 | ret = GNUNET_CRYPTO_eddsa_public_key_to_string (&cp->pid.public_key); | 251 | ret = GNUNET_CRYPTO_eddsa_public_key_to_string (&cp->pid.public_key); |
252 | 252 | ||
253 | if (NULL == ret){ | 253 | if (NULL == ret) |
254 | return "NULL"; | 254 | return "NULL"; |
255 | } | 255 | |
256 | 256 | ||
257 | strncpy (buf, | 257 | strncpy (buf, |
258 | ret, | 258 | ret, |