From: Bart Polot Date: Thu, 19 Jan 2012 14:33:09 +0000 (+0000) Subject: Fixed a peer_rc bug. X-Git-Tag: initial-import-from-subversion-38251~15219 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=4a4d5fab309bb2c5a45c13f63e36415e04caf390;p=oweals%2Fgnunet.git Fixed a peer_rc bug. --- 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;