diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/dht/gnunet-service-xdht_neighbours.c | 20 |
1 files changed, 15 insertions, 5 deletions
diff --git a/src/dht/gnunet-service-xdht_neighbours.c b/src/dht/gnunet-service-xdht_neighbours.c index 096375a25..b70f98884 100644 --- a/src/dht/gnunet-service-xdht_neighbours.c +++ b/src/dht/gnunet-service-xdht_neighbours.c | |||
@@ -5332,11 +5332,21 @@ handle_dht_p2p_notify_new_successor(void *cls, | |||
5332 | else | 5332 | else |
5333 | next_hop = trail[my_index + 1]; | 5333 | next_hop = trail[my_index + 1]; |
5334 | /* Add an entry in routing table for trail from source to its new successor. */ | 5334 | /* Add an entry in routing table for trail from source to its new successor. */ |
5335 | if (GNUNET_SYSERR == GDS_ROUTING_add (trail_id, *peer, next_hop)) | 5335 | /* TODO : Verify the logic below |
5336 | { | 5336 | * Removed th following error check because GNUNET_SYSERR is returned when |
5337 | GNUNET_break(0); | 5337 | * route with trail_id was already in the routing table. This can happen, when |
5338 | return GNUNET_OK; | 5338 | * notify_successor was being retried. This should not be an error, and should |
5339 | } | 5339 | * be ignored. |
5340 | */ | ||
5341 | GDS_ROUTING_add(trail_id, *peer, next_hop); | ||
5342 | // if (GNUNET_SYSERR == GDS_ROUTING_add (trail_id, *peer, next_hop)) | ||
5343 | // { | ||
5344 | // | ||
5345 | // GNUNET_break(0); | ||
5346 | // return GNUNET_OK; | ||
5347 | // | ||
5348 | // } | ||
5349 | |||
5340 | target_friend = | 5350 | target_friend = |
5341 | GNUNET_CONTAINER_multipeermap_get (friend_peermap, &next_hop); | 5351 | GNUNET_CONTAINER_multipeermap_get (friend_peermap, &next_hop); |
5342 | if (NULL == target_friend) | 5352 | if (NULL == target_friend) |