From: Bart Polot Date: Mon, 8 Jul 2013 12:58:14 +0000 (+0000) Subject: - fix keepalive loop X-Git-Tag: initial-import-from-subversion-38251~8491 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=b9dbc84ac5eff341860f09df948d1432e1ce7b6e;p=oweals%2Fgnunet.git - fix keepalive loop --- diff --git a/src/mesh/gnunet-service-mesh.c b/src/mesh/gnunet-service-mesh.c index cc4150d16..d8cce4dfc 100644 --- a/src/mesh/gnunet-service-mesh.c +++ b/src/mesh/gnunet-service-mesh.c @@ -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);