summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSchanzenbach, Martin <mschanzenbach@posteo.de>2019-02-28 19:07:59 +0100
committerSchanzenbach, Martin <mschanzenbach@posteo.de>2019-02-28 19:07:59 +0100
commit8b3af2dffa9351ae15d4e37347a564eb4b6852c0 (patch)
treee0c6a0c34ba92cbf85c127ba65de9df248800c6f
parentfaf5ac19261f7e3875deac5fdcd773c41dd048e2 (diff)
prevent unordered message delivery, everywhere
-rw-r--r--src/cadet/gnunet-service-cadet_channel.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cadet/gnunet-service-cadet_channel.c b/src/cadet/gnunet-service-cadet_channel.c
index 3c83d0bb3..1e898c1eb 100644
--- a/src/cadet/gnunet-service-cadet_channel.c
+++ b/src/cadet/gnunet-service-cadet_channel.c
@@ -1425,7 +1425,7 @@ GCCH_handle_channel_plaintext_data (struct CadetChannel *ch,
ccc->client_ready = GNUNET_NO;
GSC_send_to_client (ccc->c,
next_msg->env);
- ch->mid_recv.mid = htonl (1 + ntohl (ch->mid_recv.mid));
+ ch->mid_recv.mid = htonl (1 + ntohl (next_msg->mid.mid));
ch->mid_futures >>= 1;
send_channel_data_ack (ch);
GNUNET_CONTAINER_DLL_remove (ccc->head_recv,