diff options
author | Bart Polot <bart@net.in.tum.de> | 2012-11-05 18:57:11 +0000 |
---|---|---|
committer | Bart Polot <bart@net.in.tum.de> | 2012-11-05 18:57:11 +0000 |
commit | 1c1f5bb6c85b1239b5e48efea09d5f5b1b3912d2 (patch) | |
tree | 8d7bd61cce22ffdbe584a83b68c6308eae895f52 /src | |
parent | 244bb7f06456e4ae469b90f9298b77dcc7418874 (diff) | |
download | gnunet-1c1f5bb6c85b1239b5e48efea09d5f5b1b3912d2.tar.gz gnunet-1c1f5bb6c85b1239b5e48efea09d5f5b1b3912d2.zip |
- initialize all fcinfo fields
Diffstat (limited to 'src')
-rw-r--r-- | src/mesh/gnunet-service-mesh-new.c | 5 |
1 files changed, 5 insertions, 0 deletions
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) | |||
3408 | GNUNET_array_append (t->clients, t->nclients, c); | 3408 | GNUNET_array_append (t->clients, t->nclients, c); |
3409 | fcinfo.t = t; | 3409 | fcinfo.t = t; |
3410 | fcinfo.client = c; | 3410 | fcinfo.client = c; |
3411 | fcinfo.peer = NULL; | ||
3411 | fcinfo.fwd_ack = t->fwd_pid + 1; | 3412 | fcinfo.fwd_ack = t->fwd_pid + 1; |
3412 | fcinfo.bck_ack = t->nobuffer ? 1 : INITIAL_WINDOW_SIZE - 1; | 3413 | fcinfo.bck_ack = t->nobuffer ? 1 : INITIAL_WINDOW_SIZE - 1; |
3413 | fcinfo.fwd_pid = t->fwd_pid; | 3414 | fcinfo.fwd_pid = t->fwd_pid; |
3414 | fcinfo.bck_pid = (uint32_t) -1; // Expected next: 0 | 3415 | fcinfo.bck_pid = (uint32_t) -1; // Expected next: 0 |
3415 | fcinfo.fc_poll = GNUNET_SCHEDULER_NO_TASK; | 3416 | fcinfo.fc_poll = GNUNET_SCHEDULER_NO_TASK; |
3417 | fcinfo.send_buffer = NULL; | ||
3418 | fcinfo.send_buffer_n = 0; | ||
3419 | fcinfo.send_buffer_start = 0; | ||
3420 | fcinfo.skip = t->fwd_pid; | ||
3416 | // FIXME fc buffering is done by context_notify. Confirm this is OK. | 3421 | // FIXME fc buffering is done by context_notify. Confirm this is OK. |
3417 | 3422 | ||
3418 | t->nclients--; | 3423 | t->nclients--; |