diff options
| author | Lorenz Kästle <12514511+RincewindsHat@users.noreply.github.com> | 2025-06-17 15:44:35 +0200 |
|---|---|---|
| committer | Lorenz Kästle <12514511+RincewindsHat@users.noreply.github.com> | 2025-06-17 15:44:35 +0200 |
| commit | 43ae5fbe2df66c6c3169528431b6b0c9c6bfd67c (patch) | |
| tree | 513858723ad6611a23f5af79cf3b119b5b13d5b0 | |
| parent | f680cd7b88aef2ff4ef8c4d336ee14269bea65bc (diff) | |
| download | monitoring-plugins-43ae5fbe2df66c6c3169528431b6b0c9c6bfd67c.tar.gz | |
Fix possible multiplication overflow?
| -rw-r--r-- | plugins-root/check_icmp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins-root/check_icmp.c b/plugins-root/check_icmp.c index dad03ffa..7ee08ad9 100644 --- a/plugins-root/check_icmp.c +++ b/plugins-root/check_icmp.c | |||
| @@ -917,7 +917,7 @@ int main(int argc, char **argv) { | |||
| 917 | time_t max_completion_time = | 917 | time_t max_completion_time = |
| 918 | ((config.pkt_interval * config.number_of_targets * config.number_of_packets) + | 918 | ((config.pkt_interval * config.number_of_targets * config.number_of_packets) + |
| 919 | (config.target_interval * config.number_of_targets)) + | 919 | (config.target_interval * config.number_of_targets)) + |
| 920 | (config.number_of_targets * config.number_of_packets * config.crit.rta) + config.crit.rta; | 920 | (config.crit.rta * config.number_of_targets * config.number_of_packets) + config.crit.rta; |
| 921 | 921 | ||
| 922 | if (debug) { | 922 | if (debug) { |
| 923 | printf("packets: %u, targets: %u\n" | 923 | printf("packets: %u, targets: %u\n" |
