diff options
Diffstat (limited to 'src/cadet/gnunet-service-cadet_paths.c')
-rw-r--r-- | src/cadet/gnunet-service-cadet_paths.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/cadet/gnunet-service-cadet_paths.c b/src/cadet/gnunet-service-cadet_paths.c index 2da4e2708..aa31aaa74 100644 --- a/src/cadet/gnunet-service-cadet_paths.c +++ b/src/cadet/gnunet-service-cadet_paths.c | |||
@@ -468,9 +468,9 @@ extend_path (struct CadetPeerPath *path, | |||
468 | * @return a path through the network | 468 | * @return a path through the network |
469 | */ | 469 | */ |
470 | void | 470 | void |
471 | GCPP_try_path_from_dht (const struct GNUNET_PeerIdentity *get_path, | 471 | GCPP_try_path_from_dht (const struct GNUNET_DHT_PathElement *get_path, |
472 | unsigned int get_path_length, | 472 | unsigned int get_path_length, |
473 | const struct GNUNET_PeerIdentity *put_path, | 473 | const struct GNUNET_DHT_PathElement *put_path, |
474 | unsigned int put_path_length) | 474 | unsigned int put_path_length) |
475 | { | 475 | { |
476 | struct CadetPeer *cpath[get_path_length + put_path_length]; | 476 | struct CadetPeer *cpath[get_path_length + put_path_length]; |
@@ -490,8 +490,8 @@ GCPP_try_path_from_dht (const struct GNUNET_PeerIdentity *get_path, | |||
490 | const struct GNUNET_PeerIdentity *pid; | 490 | const struct GNUNET_PeerIdentity *pid; |
491 | 491 | ||
492 | pid = (off < get_path_length) | 492 | pid = (off < get_path_length) |
493 | ? &get_path[get_path_length - off - 1] | 493 | ? &get_path[get_path_length - off - 1].pred |
494 | : &put_path[get_path_length + put_path_length - off - 1]; | 494 | : &put_path[get_path_length + put_path_length - off - 1].pred; |
495 | /* Check that I am not in the path */ | 495 | /* Check that I am not in the path */ |
496 | if (0 == GNUNET_memcmp (&my_full_id, | 496 | if (0 == GNUNET_memcmp (&my_full_id, |
497 | pid)) | 497 | pid)) |