diff options
author | Christian Grothoff <christian@grothoff.org> | 2018-06-25 19:54:34 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2018-06-25 19:54:34 +0200 |
commit | 08c862f4f45eabab77f5b28753c6fe22786db455 (patch) | |
tree | 6eed0a9470fcfeb581dab3dedd10d5dabac082be /src/dht | |
parent | fbf89cc954e20bf6a3377cb474dbca1f50af4600 (diff) | |
download | gnunet-08c862f4f45eabab77f5b28753c6fe22786db455.tar.gz gnunet-08c862f4f45eabab77f5b28753c6fe22786db455.zip |
avoid integer overflow issue
Diffstat (limited to 'src/dht')
-rw-r--r-- | src/dht/gnunet_dht_profiler.c | 2 |
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; |