diff options
Diffstat (limited to 'src/cadet/gnunet-service-cadet_dht.c')
-rw-r--r-- | src/cadet/gnunet-service-cadet_dht.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/cadet/gnunet-service-cadet_dht.c b/src/cadet/gnunet-service-cadet_dht.c index 6caac474d..d44a50f50 100644 --- a/src/cadet/gnunet-service-cadet_dht.c +++ b/src/cadet/gnunet-service-cadet_dht.c | |||
@@ -112,16 +112,15 @@ static struct GNUNET_TIME_Relative announce_delay; | |||
112 | static void | 112 | static void |
113 | dht_get_id_handler (void *cls, struct GNUNET_TIME_Absolute exp, | 113 | dht_get_id_handler (void *cls, struct GNUNET_TIME_Absolute exp, |
114 | const struct GNUNET_HashCode *key, | 114 | const struct GNUNET_HashCode *key, |
115 | const struct GNUNET_PeerIdentity *get_path, | 115 | const struct GNUNET_DHT_PathElement *get_path, |
116 | unsigned int get_path_length, | 116 | unsigned int get_path_length, |
117 | const struct GNUNET_PeerIdentity *put_path, | 117 | const struct GNUNET_DHT_PathElement *put_path, |
118 | unsigned int put_path_length, | 118 | unsigned int put_path_length, |
119 | enum GNUNET_BLOCK_Type type, | 119 | enum GNUNET_BLOCK_Type type, |
120 | size_t size, | 120 | size_t size, |
121 | const void *data) | 121 | const void *data) |
122 | { | 122 | { |
123 | const struct GNUNET_HELLO_Message *hello = data; | 123 | const struct GNUNET_HELLO_Message *hello = data; |
124 | struct CadetPeer *peer; | ||
125 | 124 | ||
126 | GCPP_try_path_from_dht (get_path, | 125 | GCPP_try_path_from_dht (get_path, |
127 | get_path_length, | 126 | get_path_length, |
@@ -131,7 +130,9 @@ dht_get_id_handler (void *cls, struct GNUNET_TIME_Absolute exp, | |||
131 | (ntohs (hello->header.size) == size) && | 130 | (ntohs (hello->header.size) == size) && |
132 | (size == GNUNET_HELLO_size (hello))) | 131 | (size == GNUNET_HELLO_size (hello))) |
133 | { | 132 | { |
134 | peer = GCP_get (&put_path[0], | 133 | struct CadetPeer *peer; |
134 | |||
135 | peer = GCP_get (&put_path[0].pred, | ||
135 | GNUNET_YES); | 136 | GNUNET_YES); |
136 | LOG (GNUNET_ERROR_TYPE_DEBUG, | 137 | LOG (GNUNET_ERROR_TYPE_DEBUG, |
137 | "Got HELLO for %s\n", | 138 | "Got HELLO for %s\n", |