- Keep calm and carry on
[oweals/gnunet.git] / src / mesh / gnunet-service-mesh-new.c
index 301e1ca0409e164e383a93fbf1a4be6443a237e2..2e8b094bdabd2d365fb310b47689ad2bbf8b2136 100644 (file)
@@ -35,7 +35,7 @@
  * - MAIN FUNCTIONS (main & run)
  *
  * TODO:
- * - Backport r24764.
+ * - Backport r24764, r24767.
  * - error reporting (CREATE/CHANGE/ADD/DEL?) -- new message!
  * - partial disconnect reporting -- same as error reporting?
  * - add ping message
@@ -3406,12 +3406,18 @@ tunnel_add_client (struct MeshTunnel *t, struct MeshClient *c)
   struct MeshTunnelFlowControlInfo fcinfo;
 
   GNUNET_array_append (t->clients, t->nclients, c);
+  fcinfo.t = t;
   fcinfo.client = c;
+  fcinfo.peer = NULL;
   fcinfo.fwd_ack = t->fwd_pid + 1;
   fcinfo.bck_ack = t->nobuffer ? 1 : INITIAL_WINDOW_SIZE - 1;
   fcinfo.fwd_pid = t->fwd_pid;
   fcinfo.bck_pid = (uint32_t) -1; // Expected next: 0
   fcinfo.fc_poll = GNUNET_SCHEDULER_NO_TASK;
+  fcinfo.send_buffer = NULL;
+  fcinfo.send_buffer_n = 0;
+  fcinfo.send_buffer_start = 0;
+  fcinfo.skip = t->fwd_pid;
   // FIXME fc buffering is done by context_notify. Confirm this is OK.
 
   t->nclients--;