aboutsummaryrefslogtreecommitdiff
path: root/src/dht/gnunet-service-dht_routing.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2017-01-09 17:48:27 +0100
committerChristian Grothoff <christian@grothoff.org>2017-01-09 21:18:47 +0100
commitd829597ee90dccffffd46a082372af6b35042130 (patch)
tree3287e54a2401ccf7050f6588afb01043e7ea8be9 /src/dht/gnunet-service-dht_routing.c
parent4bf29b6e9f9b0223f9497f7664e96e3f333df861 (diff)
downloadgnunet-d829597ee90dccffffd46a082372af6b35042130.tar.gz
gnunet-d829597ee90dccffffd46a082372af6b35042130.zip
cosmetics
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