From 4a4d5fab309bb2c5a45c13f63e36415e04caf390 Mon Sep 17 00:00:00 2001 From: Bart Polot Date: Thu, 19 Jan 2012 14:33:09 +0000 Subject: [PATCH] Fixed a peer_rc bug. --- src/mesh/mesh_api.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/src/mesh/mesh_api.c b/src/mesh/mesh_api.c index bfb9875cf..c0b9a2a85 100644 --- a/src/mesh/mesh_api.c +++ b/src/mesh/mesh_api.c @@ -775,6 +775,7 @@ process_tunnel_created (struct GNUNET_MESH_Handle *h, t->peers[0]->t = t; t->peers[0]->connected = 1; t->peers[0]->id = t->owner; + GNUNET_PEER_change_rc (t->owner, 1); t->mesh = h; t->tid = tid; if (NULL != h->new_tunnel) @@ -918,13 +919,6 @@ process_incoming_data (struct GNUNET_MESH_Handle *h, case GNUNET_MESSAGE_TYPE_MESH_MULTICAST: mcast = (struct GNUNET_MESH_Multicast *) message; t = retrieve_tunnel (h, ntohl (mcast->tid)); -#if MESH_API_DEBUG // FIXME debug for #2071 - if (NULL == t) - { - GNUNET_log (GNUNET_ERROR_TYPE_WARNING, "mesh: tunnel %u unknown\n", - ntohl (mcast->tid)); - } -#endif payload = (struct GNUNET_MessageHeader *) &mcast[1]; peer = &mcast->oid; break; -- 2.25.1