- fix false assert trigger when message #0 is lost
authorBart Polot <bart@net.in.tum.de>
Wed, 15 Oct 2014 00:55:37 +0000 (00:55 +0000)
committerBart Polot <bart@net.in.tum.de>
Wed, 15 Oct 2014 00:55:37 +0000 (00:55 +0000)
src/cadet/gnunet-service-cadet_channel.c

index cc809e9d0530415caaee63ffb420bf042b074250..14677c96cec89862c448ef6a009c8bf5a3115252 100644 (file)
@@ -1536,7 +1536,7 @@ GCCH_send_data_ack (struct CadetChannel *ch, int fwd)
            GC_m2s (copy->type));
       continue;
     }
-    GNUNET_assert (copy->mid > ack);
+    GNUNET_assert (GC_is_pid_bigger(copy->mid, ack));
     delta = copy->mid - (ack + 1);
     if (63 < delta)
       break;