aboutsummaryrefslogtreecommitdiff
path: root/src/mesh
diff options
context:
space:
mode:
authorBart Polot <bart@net.in.tum.de>2012-01-19 14:33:09 +0000
committerBart Polot <bart@net.in.tum.de>2012-01-19 14:33:09 +0000
commit4a4d5fab309bb2c5a45c13f63e36415e04caf390 (patch)
tree193c1b8cbb20d7e7f0a2946bf70a1cf702146b3a /src/mesh
parent30b89ef65bc58d71f6edb823c40d77a01e2c3f36 (diff)
downloadgnunet-4a4d5fab309bb2c5a45c13f63e36415e04caf390.tar.gz
gnunet-4a4d5fab309bb2c5a45c13f63e36415e04caf390.zip
Fixed a peer_rc bug.
Diffstat (limited to 'src/mesh')
-rw-r--r--src/mesh/mesh_api.c8
1 files changed, 1 insertions, 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,
775 t->peers[0]->t = t; 775 t->peers[0]->t = t;
776 t->peers[0]->connected = 1; 776 t->peers[0]->connected = 1;
777 t->peers[0]->id = t->owner; 777 t->peers[0]->id = t->owner;
778 GNUNET_PEER_change_rc (t->owner, 1);
778 t->mesh = h; 779 t->mesh = h;
779 t->tid = tid; 780 t->tid = tid;
780 if (NULL != h->new_tunnel) 781 if (NULL != h->new_tunnel)
@@ -918,13 +919,6 @@ process_incoming_data (struct GNUNET_MESH_Handle *h,
918 case GNUNET_MESSAGE_TYPE_MESH_MULTICAST: 919 case GNUNET_MESSAGE_TYPE_MESH_MULTICAST:
919 mcast = (struct GNUNET_MESH_Multicast *) message; 920 mcast = (struct GNUNET_MESH_Multicast *) message;
920 t = retrieve_tunnel (h, ntohl (mcast->tid)); 921 t = retrieve_tunnel (h, ntohl (mcast->tid));
921#if MESH_API_DEBUG // FIXME debug for #2071
922 if (NULL == t)
923 {
924 GNUNET_log (GNUNET_ERROR_TYPE_WARNING, "mesh: tunnel %u unknown\n",
925 ntohl (mcast->tid));
926 }
927#endif
928 payload = (struct GNUNET_MessageHeader *) &mcast[1]; 922 payload = (struct GNUNET_MessageHeader *) &mcast[1];
929 peer = &mcast->oid; 923 peer = &mcast->oid;
930 break; 924 break;