diff options
author | Bart Polot <bart@net.in.tum.de> | 2013-10-15 12:53:26 +0000 |
---|---|---|
committer | Bart Polot <bart@net.in.tum.de> | 2013-10-15 12:53:26 +0000 |
commit | 582d88d711a4785f512f3d68682915351064f481 (patch) | |
tree | 80cb713807aba371ba6277f604ba5fc92c746d39 /src/mesh | |
parent | e492c677596668d41d865a5758a81ea53ca78eac (diff) | |
download | gnunet-582d88d711a4785f512f3d68682915351064f481.tar.gz gnunet-582d88d711a4785f512f3d68682915351064f481.zip |
- GMCH_send can try to free saved message, save first
Diffstat (limited to 'src/mesh')
-rw-r--r-- | src/mesh/gnunet-service-mesh_channel.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mesh/gnunet-service-mesh_channel.c b/src/mesh/gnunet-service-mesh_channel.c index bd1e64136..b02da1aba 100644 --- a/src/mesh/gnunet-service-mesh_channel.c +++ b/src/mesh/gnunet-service-mesh_channel.c | |||
@@ -1256,10 +1256,10 @@ GMCH_handle_local_data (struct MeshChannel *ch, | |||
1256 | payload->header.type = htons (GNUNET_MESSAGE_TYPE_MESH_DATA); | 1256 | payload->header.type = htons (GNUNET_MESSAGE_TYPE_MESH_DATA); |
1257 | payload->chid = htonl (ch->gid); | 1257 | payload->chid = htonl (ch->gid); |
1258 | LOG (GNUNET_ERROR_TYPE_DEBUG, " sending on channel...\n"); | 1258 | LOG (GNUNET_ERROR_TYPE_DEBUG, " sending on channel...\n"); |
1259 | GMCH_send_prebuilt_message (&payload->header, ch, fwd); | ||
1260 | |||
1261 | if (GNUNET_YES == ch->reliable) | 1259 | if (GNUNET_YES == ch->reliable) |
1262 | channel_save_copy (ch, &payload->header, fwd); | 1260 | channel_save_copy (ch, &payload->header, fwd); |
1261 | GMCH_send_prebuilt_message (&payload->header, ch, fwd); | ||
1262 | |||
1263 | if (GMT_get_buffer (ch->t, fwd) > 0) | 1263 | if (GMT_get_buffer (ch->t, fwd) > 0) |
1264 | { | 1264 | { |
1265 | send_client_ack (ch, fwd); | 1265 | send_client_ack (ch, fwd); |