summaryrefslogtreecommitdiff
path: root/src/vpn
diff options
context:
space:
mode:
authorDavid Barksdale <amatus@amatus.name>2016-11-17 23:24:43 -0600
committerDavid Barksdale <amatus@amatus.name>2016-11-17 23:24:43 -0600
commit12597da2a33fe196a785a656136cba7675a06e21 (patch)
treec189c7fb7f2835f8219622400d83c453a91dbb69 /src/vpn
parentcdeb1253bfda209def1ef48b436ff09cf7ab8be6 (diff)
Sometimes it's OK if multiplication overflows
Diffstat (limited to 'src/vpn')
-rw-r--r--src/vpn/vpn_api.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vpn/vpn_api.c b/src/vpn/vpn_api.c
index b22b805cd..4add41ce4 100644
--- a/src/vpn/vpn_api.c
+++ b/src/vpn/vpn_api.c
@@ -352,7 +352,7 @@ reconnect (struct GNUNET_VPN_Handle *vh)
for (rr = vh->rr_head; NULL != rr; rr = rr->next)
rr->request_id = 0;
vh->backoff = GNUNET_TIME_relative_max (GNUNET_TIME_UNIT_MILLISECONDS,
- GNUNET_TIME_relative_min (GNUNET_TIME_relative_multiply (vh->backoff, 2),
+ GNUNET_TIME_relative_min (GNUNET_TIME_relative_saturating_multiply (vh->backoff, 2),
GNUNET_TIME_relative_multiply (GNUNET_TIME_UNIT_SECONDS, 30)));
vh->rt = GNUNET_SCHEDULER_add_delayed (vh->backoff,
&connect_task,