From 08c862f4f45eabab77f5b28753c6fe22786db455 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Mon, 25 Jun 2018 19:54:34 +0200 Subject: [PATCH] avoid integer overflow issue --- src/dht/gnunet_dht_profiler.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dht/gnunet_dht_profiler.c b/src/dht/gnunet_dht_profiler.c index 5e22ca60f..a729d1b01 100644 --- a/src/dht/gnunet_dht_profiler.c +++ b/src/dht/gnunet_dht_profiler.c @@ -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; -- 2.25.1