From: Bart Polot Date: Fri, 29 Nov 2013 13:28:37 +0000 (+0000) Subject: - only complain if mid is BIGGER than expected, because sender sent unauthorized... X-Git-Tag: initial-import-from-subversion-38251~5858 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=8b7a07dbd006f4a47d60f6b16e2d8ce18b53dcae;p=oweals%2Fgnunet.git - only complain if mid is BIGGER than expected, because sender sent unauthorized traffic. if its smaller it is just an unnecessary retransmission --- 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);