diff options
author | Bart Polot <bart@net.in.tum.de> | 2013-06-07 00:29:07 +0000 |
---|---|---|
committer | Bart Polot <bart@net.in.tum.de> | 2013-06-07 00:29:07 +0000 |
commit | b783cdaca2c9f8931e592e27dee3ab76c0507c6c (patch) | |
tree | dd930b21acc70019710afb8ce4887f57f2bc3110 /src/mesh | |
parent | a998e0abbd220035bdb333388da229852980e2cc (diff) | |
download | gnunet-b783cdaca2c9f8931e592e27dee3ab76c0507c6c.tar.gz gnunet-b783cdaca2c9f8931e592e27dee3ab76c0507c6c.zip |
- remove fixed window size from service, fix crash
Diffstat (limited to 'src/mesh')
-rw-r--r-- | src/mesh/gnunet-service-mesh-new.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mesh/gnunet-service-mesh-new.c b/src/mesh/gnunet-service-mesh-new.c index 198d96f7a..ddbd98ef0 100644 --- a/src/mesh/gnunet-service-mesh-new.c +++ b/src/mesh/gnunet-service-mesh-new.c | |||
@@ -2211,6 +2211,7 @@ tunnel_destroy (struct MeshTunnel *t) | |||
2211 | 2211 | ||
2212 | if (NULL != t->client) | 2212 | if (NULL != t->client) |
2213 | { | 2213 | { |
2214 | c = t->client; | ||
2214 | GMC_hash32 (t->local_tid_dest, &hash); | 2215 | GMC_hash32 (t->local_tid_dest, &hash); |
2215 | if (GNUNET_YES != | 2216 | if (GNUNET_YES != |
2216 | GNUNET_CONTAINER_multihashmap_remove (c->incoming_tunnels, &hash, t)) | 2217 | GNUNET_CONTAINER_multihashmap_remove (c->incoming_tunnels, &hash, t)) |
@@ -2506,7 +2507,7 @@ send_core_path_ack (void *cls, size_t size, void *buf) | |||
2506 | GNUNET_break (0); | 2507 | GNUNET_break (0); |
2507 | return 0; | 2508 | return 0; |
2508 | } | 2509 | } |
2509 | t->prev_fc.last_ack_sent = t->nobuffer ? 0 : INITIAL_WINDOW_SIZE - 1; | 2510 | t->prev_fc.last_ack_sent = t->nobuffer ? 0 : t->queue_max - 1; |
2510 | msg->header.size = htons (sizeof (struct GNUNET_MESH_PathACK)); | 2511 | msg->header.size = htons (sizeof (struct GNUNET_MESH_PathACK)); |
2511 | msg->header.type = htons (GNUNET_MESSAGE_TYPE_MESH_PATH_ACK); | 2512 | msg->header.type = htons (GNUNET_MESSAGE_TYPE_MESH_PATH_ACK); |
2512 | GNUNET_PEER_resolve (t->id.oid, &msg->oid); | 2513 | GNUNET_PEER_resolve (t->id.oid, &msg->oid); |