gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[taler-anastasis] branch master updated: -fix time overflow possibility


From: gnunet
Subject: [taler-anastasis] branch master updated: -fix time overflow possibility
Date: Fri, 23 Jul 2021 20:44:05 +0200

This is an automated email from the git hooks/post-receive script.

grothoff pushed a commit to branch master
in repository anastasis.

The following commit(s) were added to refs/heads/master by this push:
     new 1dc0df9  -fix time overflow possibility
1dc0df9 is described below

commit 1dc0df93bacc725086be6264de9f9c2669371936
Author: Christian Grothoff <christian@grothoff.org>
AuthorDate: Fri Jul 23 20:44:03 2021 +0200

    -fix time overflow possibility
---
 src/backend/anastasis-httpd.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/backend/anastasis-httpd.c b/src/backend/anastasis-httpd.c
index 23a9954..56bd7c9 100644
--- a/src/backend/anastasis-httpd.c
+++ b/src/backend/anastasis-httpd.c
@@ -567,7 +567,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);

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]