diff options
author | Ryan Winograd <ryan@thewinograds.com> | 2017-07-02 18:35:36 -0500 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2017-07-03 08:09:02 +0200 |
commit | 3a48a132685ca891ce1b7a10bbcd4b4cd33cee5e (patch) | |
tree | 29520e4f872af48eb6c7f8167aa97da649120d89 /tests/unit | |
parent | 4fc6ebe18a607764194ee23e5aa898a027fe3c60 (diff) | |
download | curl-3a48a132685ca891ce1b7a10bbcd4b4cd33cee5e.tar.gz |
unit1399: fix integer overflow
Bug: #1616
Closes #1633
Diffstat (limited to 'tests/unit')
-rw-r--r-- | tests/unit/unit1399.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/unit/unit1399.c b/tests/unit/unit1399.c index b733c8fd8..d951504ea 100644 --- a/tests/unit/unit1399.c +++ b/tests/unit/unit1399.c @@ -91,7 +91,7 @@ UNITTEST_START */ data.progress.t_startsingle.tv_sec = now.tv_sec - 3; data.progress.t_startsingle.tv_usec = now.tv_usec; - data.progress.t_redirect = (now.tv_sec - 2) * usec_magnitude; + data.progress.t_redirect = data.progress.t_starttransfer + 1; Curl_pgrsTime(&data, TIMER_STARTTRANSFER); |