summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2021-07-23 20:13:28 +0200
committerChristian Grothoff <christian@grothoff.org>2021-07-23 20:13:34 +0200
commitd34de0edb1cb017975e8fd57d3aa17161bd88d6b (patch)
tree69b4c778c2923b114c5cb8933abbace0a473498f
parent60d84b6a4468b22b3a801b169c7f978f344c5fbc (diff)
downloadmerchant-d34de0edb1cb017975e8fd57d3aa17161bd88d6b.tar.gz
merchant-d34de0edb1cb017975e8fd57d3aa17161bd88d6b.tar.bz2
merchant-d34de0edb1cb017975e8fd57d3aa17161bd88d6b.zip
use safe multiplication
-rw-r--r--src/backend/taler-merchant-httpd.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/backend/taler-merchant-httpd.c b/src/backend/taler-merchant-httpd.c
index ac223a5b..104d7435 100644
--- a/src/backend/taler-merchant-httpd.c
+++ b/src/backend/taler-merchant-httpd.c
@@ -890,7 +890,8 @@ prepare_daemon (void)
&max));
haveto = MHD_get_timeout (mhd, &timeout);
if (haveto == MHD_YES)
- tv.rel_value_us = (uint64_t) timeout * 1000LL;
+ tv = GNUNET_TIME_relative_multiply (GNUNET_TIME_UNIT_MILLISECONDS,
+ timeout);
else
tv = GNUNET_TIME_UNIT_FOREVER_REL;
GNUNET_NETWORK_fdset_copy_native (wrs, &rs, max + 1);