avoid integer overflow issue
authorChristian Grothoff <christian@grothoff.org>
Mon, 25 Jun 2018 17:54:34 +0000 (19:54 +0200)
committerChristian Grothoff <christian@grothoff.org>
Mon, 25 Jun 2018 17:54:34 +0000 (19:54 +0200)
src/dht/gnunet_dht_profiler.c

index 5e22ca60ff055f6caa6466e80ddd8ff60b1ad095..a729d1b0118bc7c8434b2f1754fe66f3f25f22b7 100644 (file)
@@ -752,7 +752,7 @@ dht_disconnect (void *cls,
   switch (mode)
   {
   case MODE_PUT:
-    if (n_puts_ok != n_active * num_puts_per_peer)
+    if (n_puts_ok != ((unsigned long long) n_active) * num_puts_per_peer)
       return;
     /* Start GETs if all PUTs have been made */
     mode = MODE_GET;