diff options
Diffstat (limited to 'src/cadet/gnunet-service-cadet_channel.c')
-rw-r--r-- | src/cadet/gnunet-service-cadet_channel.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/cadet/gnunet-service-cadet_channel.c b/src/cadet/gnunet-service-cadet_channel.c index 1746fc509..3c83d0bb3 100644 --- a/src/cadet/gnunet-service-cadet_channel.c +++ b/src/cadet/gnunet-service-cadet_channel.c | |||
@@ -1331,7 +1331,10 @@ GCCH_handle_channel_plaintext_data (struct CadetChannel *ch, | |||
1331 | ccc->client_ready = GNUNET_NO; | 1331 | ccc->client_ready = GNUNET_NO; |
1332 | GSC_send_to_client (ccc->c, | 1332 | GSC_send_to_client (ccc->c, |
1333 | env); | 1333 | env); |
1334 | ch->mid_recv.mid = htonl (1 + ntohl (ch->mid_recv.mid)); | 1334 | if (GNUNET_NO == ch->out_of_order) |
1335 | ch->mid_recv.mid = htonl (1 + ntohl (msg->mid.mid)); | ||
1336 | else | ||
1337 | ch->mid_recv.mid = htonl (1 + ntohl (ch->mid_recv.mid)); | ||
1335 | ch->mid_futures >>= 1; | 1338 | ch->mid_futures >>= 1; |
1336 | if ( (GNUNET_YES == ch->out_of_order) && | 1339 | if ( (GNUNET_YES == ch->out_of_order) && |
1337 | (GNUNET_NO == ch->reliable) ) | 1340 | (GNUNET_NO == ch->reliable) ) |