aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/cadet/gnunet-service-cadet_channel.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/cadet/gnunet-service-cadet_channel.c b/src/cadet/gnunet-service-cadet_channel.c
index 10df917ff..cd5093c46 100644
--- a/src/cadet/gnunet-service-cadet_channel.c
+++ b/src/cadet/gnunet-service-cadet_channel.c
@@ -1318,9 +1318,9 @@ GCCH_handle_channel_plaintext_data (struct CadetChannel *ch,
1318 ((msg->mid.mid == ch->mid_recv.mid) && 1318 ((msg->mid.mid == ch->mid_recv.mid) &&
1319 (GNUNET_YES == ch->reliable)) || 1319 (GNUNET_YES == ch->reliable)) ||
1320 ((GNUNET_NO == ch->reliable) && 1320 ((GNUNET_NO == ch->reliable) &&
1321 (msg->mid.mid >= ch->mid_recv.mid) && 1321 (ntohl (msg->mid.mid) >= ntohl (ch->mid_recv.mid)) &&
1322 ((NULL == ccc->head_recv) || 1322 ((NULL == ccc->head_recv) ||
1323 (msg->mid.mid < ccc->head_recv->mid.mid))) ) 1323 (ntohl (msg->mid.mid) < ntohl (ccc->head_recv->mid.mid)))) )
1324 { 1324 {
1325 LOG (GNUNET_ERROR_TYPE_DEBUG, 1325 LOG (GNUNET_ERROR_TYPE_DEBUG,
1326 "Giving %u bytes of payload with MID %u from %s to client %s\n", 1326 "Giving %u bytes of payload with MID %u from %s to client %s\n",
@@ -1430,7 +1430,7 @@ GCCH_handle_channel_plaintext_data (struct CadetChannel *ch,
1430 ccc->num_recv--; 1430 ccc->num_recv--;
1431 /* Do not process duplicate MID */ 1431 /* Do not process duplicate MID */
1432 if ((msg->mid.mid == next_msg->mid.mid) || /* Duplicate */ 1432 if ((msg->mid.mid == next_msg->mid.mid) || /* Duplicate */
1433 (msg->mid.mid < ch->mid_recv.mid)) /* Old */ 1433 (ntohl (msg->mid.mid) < ntohl (ch->mid_recv.mid))) /* Old */
1434 { 1434 {
1435 /* Duplicate within the queue, drop */ 1435 /* Duplicate within the queue, drop */
1436 LOG (GNUNET_ERROR_TYPE_DEBUG, 1436 LOG (GNUNET_ERROR_TYPE_DEBUG,