aboutsummaryrefslogtreecommitdiff
path: root/src/cadet/gnunet-service-cadet_tunnel.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/cadet/gnunet-service-cadet_tunnel.c')
-rw-r--r--src/cadet/gnunet-service-cadet_tunnel.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/cadet/gnunet-service-cadet_tunnel.c b/src/cadet/gnunet-service-cadet_tunnel.c
index fb144c441..9106cb83f 100644
--- a/src/cadet/gnunet-service-cadet_tunnel.c
+++ b/src/cadet/gnunet-service-cadet_tunnel.c
@@ -1107,9 +1107,8 @@ send_prebuilt_message (const struct GNUNET_MessageHeader *message,
1107 1107
1108 if (NULL == cont) 1108 if (NULL == cont)
1109 { 1109 {
1110 GNUNET_break (NULL == 1110 GNUNET_break (NULL == GCC_send_prebuilt_message (&msg->header, type, mid, c,
1111 GCC_send_prebuilt_message (&msg->header, type, mid, 1111 fwd, force, NULL, NULL));
1112 c, fwd, force, NULL, NULL));
1113 return NULL; 1112 return NULL;
1114 } 1113 }
1115 if (NULL == existing_q) 1114 if (NULL == existing_q)
@@ -1123,6 +1122,7 @@ send_prebuilt_message (const struct GNUNET_MessageHeader *message,
1123 } 1122 }
1124 tq->cq = GCC_send_prebuilt_message (&msg->header, type, mid, c, fwd, force, 1123 tq->cq = GCC_send_prebuilt_message (&msg->header, type, mid, c, fwd, force,
1125 &tun_message_sent, tq); 1124 &tun_message_sent, tq);
1125 GNUNET_assert (NULL != tq->cq);
1126 tq->cont = cont; 1126 tq->cont = cont;
1127 tq->cont_cls = cont_cls; 1127 tq->cont_cls = cont_cls;
1128 1128
@@ -1248,8 +1248,9 @@ send_kx (struct CadetTunnel *t,
1248 1248
1249 fwd = GCC_is_origin (t->connection_head->c, GNUNET_YES); 1249 fwd = GCC_is_origin (t->connection_head->c, GNUNET_YES);
1250 /* TODO save handle and cancel in case of a unneeded retransmission */ 1250 /* TODO save handle and cancel in case of a unneeded retransmission */
1251 GCC_send_prebuilt_message (&msg->header, GNUNET_MESSAGE_TYPE_CADET_KX, 1251 GNUNET_assert (NULL == GCC_send_prebuilt_message (&msg->header, type, 0, c,
1252 message->type, c, fwd, GNUNET_YES, NULL, NULL); 1252 fwd, GNUNET_YES,
1253 NULL, NULL));
1253} 1254}
1254 1255
1255 1256