aboutsummaryrefslogtreecommitdiff
path: root/src/mesh/gnunet-service-mesh_tunnel.c
diff options
context:
space:
mode:
authorBart Polot <bart@net.in.tum.de>2014-04-07 12:00:43 +0000
committerBart Polot <bart@net.in.tum.de>2014-04-07 12:00:43 +0000
commit8c5d59c31845c9bc333d46128f30b6b099d51c83 (patch)
tree5ba05e120b244268d285aa131e9207faf77415d9 /src/mesh/gnunet-service-mesh_tunnel.c
parented384707e9017c9e34b0c59b4763d8ac4ccb9931 (diff)
downloadgnunet-8c5d59c31845c9bc333d46128f30b6b099d51c83.tar.gz
gnunet-8c5d59c31845c9bc333d46128f30b6b099d51c83.zip
log
Diffstat (limited to 'src/mesh/gnunet-service-mesh_tunnel.c')
-rw-r--r--src/mesh/gnunet-service-mesh_tunnel.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/mesh/gnunet-service-mesh_tunnel.c b/src/mesh/gnunet-service-mesh_tunnel.c
index 6a86ad2d6..af9dc5385 100644
--- a/src/mesh/gnunet-service-mesh_tunnel.c
+++ b/src/mesh/gnunet-service-mesh_tunnel.c
@@ -688,13 +688,15 @@ tunnel_get_connection (struct MeshTunnel3 *t)
688 * @param size Size of the message. 688 * @param size Size of the message.
689 */ 689 */
690static void 690static void
691message_sent (void *cls, 691tun_message_sent (void *cls,
692 struct MeshConnection *c, 692 struct MeshConnection *c,
693 struct MeshConnectionQueue *q, 693 struct MeshConnectionQueue *q,
694 uint16_t type, int fwd, size_t size) 694 uint16_t type, int fwd, size_t size)
695{ 695{
696 struct MeshTunnel3Queue *qt = cls; 696 struct MeshTunnel3Queue *qt = cls;
697 697
698 LOG (GNUNET_ERROR_TYPE_DEBUG, "tun_message_sent\n");
699
698 GNUNET_assert (NULL != qt->cont); 700 GNUNET_assert (NULL != qt->cont);
699 qt->cont (qt->cont_cls, GMC_get_tunnel (c), qt, type, size); 701 qt->cont (qt->cont_cls, GMC_get_tunnel (c), qt, type, size);
700 GNUNET_free (qt); 702 GNUNET_free (qt);
@@ -883,7 +885,7 @@ send_prebuilt_message (const struct GNUNET_MessageHeader *message,
883 tq->tqd = NULL; 885 tq->tqd = NULL;
884 } 886 }
885 tq->cq = GMC_send_prebuilt_message (&msg->header, c, fwd, force, 887 tq->cq = GMC_send_prebuilt_message (&msg->header, c, fwd, force,
886 &message_sent, tq); 888 &tun_message_sent, tq);
887 tq->cont = cont; 889 tq->cont = cont;
888 tq->cont_cls = cont_cls; 890 tq->cont_cls = cont_cls;
889 891
@@ -2596,7 +2598,7 @@ GMT_cancel (struct MeshTunnel3Queue *q)
2596 if (NULL != q->cq) 2598 if (NULL != q->cq)
2597 { 2599 {
2598 GMC_cancel (q->cq); 2600 GMC_cancel (q->cq);
2599 /* message_sent() will be called and free q */ 2601 /* tun_message_sent() will be called and free q */
2600 } 2602 }
2601 else if (NULL != q->tqd) 2603 else if (NULL != q->tqd)
2602 { 2604 {