prevent unordered message delivery, everywhere
authorSchanzenbach, Martin <mschanzenbach@posteo.de>
Thu, 28 Feb 2019 18:07:59 +0000 (19:07 +0100)
committerSchanzenbach, Martin <mschanzenbach@posteo.de>
Thu, 28 Feb 2019 18:07:59 +0000 (19:07 +0100)
src/cadet/gnunet-service-cadet_channel.c

index 3c83d0bb33419012cc3d6b50fdf9993b726b9d25..1e898c1ebd72961d97fdec2d0bd339de3eaab424 100644 (file)
@@ -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,