summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSupriti Singh <supritisingh08@gmail.com>2014-08-24 00:44:51 +0000
committerSupriti Singh <supritisingh08@gmail.com>2014-08-24 00:44:51 +0000
commit3f01125723910d12ac45774cd87297242013d388 (patch)
tree9a3cb38b0c0479bca5dfd3538c3497eef143dee8 /src
parent48e2ebe919a37d5729dc44b9d0c838807267c618 (diff)
Fix
Diffstat (limited to 'src')
-rw-r--r--src/dht/gnunet-service-xdht_neighbours.c20
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,
else
next_hop = trail[my_index + 1];
/* Add an entry in routing table for trail from source to its new successor. */
- if (GNUNET_SYSERR == GDS_ROUTING_add (trail_id, *peer, next_hop))
- {
- GNUNET_break(0);
- return GNUNET_OK;
- }
+ /* TODO : Verify the logic below
+ * Removed th following error check because GNUNET_SYSERR is returned when
+ * route with trail_id was already in the routing table. This can happen, when
+ * notify_successor was being retried. This should not be an error, and should
+ * be ignored.
+ */
+ GDS_ROUTING_add(trail_id, *peer, next_hop);
+// if (GNUNET_SYSERR == GDS_ROUTING_add (trail_id, *peer, next_hop))
+// {
+//
+// GNUNET_break(0);
+// return GNUNET_OK;
+//
+// }
+
target_friend =
GNUNET_CONTAINER_multipeermap_get (friend_peermap, &next_hop);
if (NULL == target_friend)