From 1c1f5bb6c85b1239b5e48efea09d5f5b1b3912d2 Mon Sep 17 00:00:00 2001 From: Bart Polot Date: Mon, 5 Nov 2012 18:57:11 +0000 Subject: [PATCH] - initialize all fcinfo fields --- src/mesh/gnunet-service-mesh-new.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/mesh/gnunet-service-mesh-new.c b/src/mesh/gnunet-service-mesh-new.c index 3b38fc05c..2e8b094bd 100644 --- a/src/mesh/gnunet-service-mesh-new.c +++ b/src/mesh/gnunet-service-mesh-new.c @@ -3408,11 +3408,16 @@ tunnel_add_client (struct MeshTunnel *t, struct MeshClient *c) 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--; -- 2.25.1