summaryrefslogtreecommitdiff
path: root/cesar/cp/msg
diff options
context:
space:
mode:
authorThierry Carré2011-10-28 14:07:04 +0200
committerThierry Carré2011-11-03 09:33:09 +0100
commitc3a82dcdbf5fb62e897579958f3776745f3ede1b (patch)
tree7f1bbe65366133b91b26e289c89de4c4b9b39384 /cesar/cp/msg
parent691b04b86b4634fc059517a3046841e7051f0a5b (diff)
cesar/cp/msg: call bitstream_finalise also on messages fragmented.
Diffstat (limited to 'cesar/cp/msg')
-rw-r--r--cesar/cp/msg/src/msg.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/cesar/cp/msg/src/msg.c b/cesar/cp/msg/src/msg.c
index b870202654..1885397332 100644
--- a/cesar/cp/msg/src/msg.c
+++ b/cesar/cp/msg/src/msg.c
@@ -1404,6 +1404,9 @@ cp_msg_mme_tx_change_buffer (bitstream_t *bs, cp_mme_tx_t *mme)
// Set new buffer.
bitstream_set_buffer (bs, mme->p_mme + offset,
ETH_PACKET_MAX_SIZE - offset);
+ /* The last mme must call the bitstream_finalize in cp_msg_mme_send
+ * function. Fix when we have fragmented messages. */
+ mme->length = 0;
}
void