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

index dd65251a98c33c6e1083e846541a0ff875bd2b4b..1a0ab3b6e33551d4a202c66c5458958d5f196660 100644 (file)
@@ -4001,6 +4001,8 @@ handle_mesh_keepalive (void *cls, const struct GNUNET_PeerIdentity *peer,
   }
 
   tunnel_reset_timeout (t);
+  if (NULL != t->client || 0 == t->next_hop)
+    return GNUNET_OK;
 
   GNUNET_STATISTICS_update (stats, "# keepalives forwarded", 1, GNUNET_NO);
   send_prebuilt_message (message, t->next_hop, t);