aboutsummaryrefslogtreecommitdiff
path: root/src/dht/gnunet-service-dht_routing.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/dht/gnunet-service-dht_routing.c')
-rw-r--r--src/dht/gnunet-service-dht_routing.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/dht/gnunet-service-dht_routing.c b/src/dht/gnunet-service-dht_routing.c
index 48bece35e..38e5fc1c7 100644
--- a/src/dht/gnunet-service-dht_routing.c
+++ b/src/dht/gnunet-service-dht_routing.c
@@ -183,15 +183,17 @@ process (void *cls, const struct GNUNET_HashCode * key, void *value)
183 gpl = 0; 183 gpl = 0;
184 ppl = 0; 184 ppl = 0;
185 } 185 }
186 if ((0 != (rr->options & GNUNET_DHT_RO_FIND_PEER)) && 186 if ( (0 != (rr->options & GNUNET_DHT_RO_FIND_PEER)) &&
187 (pc->type == GNUNET_BLOCK_TYPE_DHT_HELLO)) 187 (pc->type == GNUNET_BLOCK_TYPE_DHT_HELLO) )
188 { 188 {
189 /* key may not match HELLO, which is OK since 189 /* key may not match HELLO, which is OK since
190 * the search is approximate. Still, the evaluation 190 * the search is approximate. Still, the evaluation
191 * would fail since the match is not exact. So 191 * would fail since the match is not exact. So
192 * we fake it by changing the key to the actual PID ... */ 192 * we fake it by changing the key to the actual PID ... */
193 GNUNET_BLOCK_get_key (GDS_block_context, GNUNET_BLOCK_TYPE_DHT_HELLO, 193 GNUNET_BLOCK_get_key (GDS_block_context,
194 pc->data, pc->data_size, &hc); 194 GNUNET_BLOCK_TYPE_DHT_HELLO,
195 pc->data, pc->data_size,
196 &hc);
195 eval_key = &hc; 197 eval_key = &hc;
196 } 198 }
197 else 199 else