- make sure head of pending messages is > expected message, fix integer underflow
authorBart Polot <bart@net.in.tum.de>
Wed, 23 Jul 2014 05:47:26 +0000 (05:47 +0000)
committerBart Polot <bart@net.in.tum.de>
Wed, 23 Jul 2014 05:47:26 +0000 (05:47 +0000)
src/cadet/gnunet-service-cadet_channel.c

index 4b120010248f590646c998fff6f083ec878b79f6..867e6b0deb216e98852bad212aea59ba28e62686 100644 (file)
@@ -1540,6 +1540,7 @@ GCCH_send_data_ack (struct CadetChannel *ch, int fwd)
            GC_m2s (copy->type));
       continue;
     }
+    GNUNET_assert (copy->mid > ack);
     delta = copy->mid - (ack + 1);
     if (63 < delta)
       break;