- fix keepalive loop
authorBart Polot <bart@net.in.tum.de>
Mon, 8 Jul 2013 12:58:14 +0000 (12:58 +0000)
committerBart Polot <bart@net.in.tum.de>
Mon, 8 Jul 2013 12:58:14 +0000 (12:58 +0000)
src/mesh/gnunet-service-mesh.c

index cc4150d167f9cb00fa16865cd304742d7bba5291..d8cce4dfcc8fdd663e81db9f5f5009ff9a4dbe15 100644 (file)
@@ -4005,7 +4005,7 @@ handle_mesh_keepalive (void *cls, const struct GNUNET_PeerIdentity *peer,
   }
 
   tunnel_reset_timeout (t);
-  if (NULL != t->client || 0 == t->next_hop)
+  if (NULL != t->client || 0 == t->next_hop || myid == t->next_hop)
     return GNUNET_OK;
 
   GNUNET_STATISTICS_update (stats, "# keepalives forwarded", 1, GNUNET_NO);