From 8b7a07dbd006f4a47d60f6b16e2d8ce18b53dcae Mon Sep 17 00:00:00 2001 From: Bart Polot Date: Fri, 29 Nov 2013 13:28:37 +0000 Subject: [PATCH] - only complain if mid is BIGGER than expected, because sender sent unauthorized traffic. if its smaller it is just an unnecessary retransmission --- src/mesh/gnunet-service-mesh_channel.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mesh/gnunet-service-mesh_channel.c b/src/mesh/gnunet-service-mesh_channel.c index 7cf53b333..831010024 100644 --- a/src/mesh/gnunet-service-mesh_channel.c +++ b/src/mesh/gnunet-service-mesh_channel.c @@ -1710,7 +1710,7 @@ GMCH_handle_data (struct MeshChannel *ch, } else { - GNUNET_break_op (0); + GNUNET_break_op (GM_is_pid_bigger (rel->mid_recv, mid)); LOG (GNUNET_ERROR_TYPE_DEBUG, " !!! MID %u not expected (%u - %u), dropping!\n", mid, rel->mid_recv, rel->mid_recv + 63); -- 2.25.1