aboutsummaryrefslogtreecommitdiff
path: root/src/dht
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2018-06-25 19:54:34 +0200
committerChristian Grothoff <christian@grothoff.org>2018-06-25 19:54:34 +0200
commit08c862f4f45eabab77f5b28753c6fe22786db455 (patch)
tree6eed0a9470fcfeb581dab3dedd10d5dabac082be /src/dht
parentfbf89cc954e20bf6a3377cb474dbca1f50af4600 (diff)
downloadgnunet-08c862f4f45eabab77f5b28753c6fe22786db455.tar.gz
gnunet-08c862f4f45eabab77f5b28753c6fe22786db455.zip
avoid integer overflow issue
Diffstat (limited to 'src/dht')
-rw-r--r--src/dht/gnunet_dht_profiler.c2
1 files changed, 1 insertions, 1 deletions
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,
752 switch (mode) 752 switch (mode)
753 { 753 {
754 case MODE_PUT: 754 case MODE_PUT:
755 if (n_puts_ok != n_active * num_puts_per_peer) 755 if (n_puts_ok != ((unsigned long long) n_active) * num_puts_per_peer)
756 return; 756 return;
757 /* Start GETs if all PUTs have been made */ 757 /* Start GETs if all PUTs have been made */
758 mode = MODE_GET; 758 mode = MODE_GET;