From 3a48a132685ca891ce1b7a10bbcd4b4cd33cee5e Mon Sep 17 00:00:00 2001 From: Ryan Winograd Date: Sun, 2 Jul 2017 18:35:36 -0500 Subject: [PATCH] unit1399: fix integer overflow Bug: #1616 Closes #1633 --- tests/unit/unit1399.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);