gnunet-svn
[Top][All Lists]
Advanced

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

[GNUnet-SVN] [taler-merchant] branch master updated: round time before c


From: gnunet
Subject: [GNUnet-SVN] [taler-merchant] branch master updated: round time before converting to JSON, otherwise GNUnet lib crashes
Date: Sun, 12 Feb 2017 18:09:40 +0100

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

dold pushed a commit to branch master
in repository merchant.

The following commit(s) were added to refs/heads/master by this push:
     new 88f323a  round time before converting to JSON, otherwise GNUnet lib 
crashes
88f323a is described below

commit 88f323a71e891c609874d1bb4fa11acebbb72ac0
Author: Florian Dold <address@hidden>
AuthorDate: Sun Feb 12 18:09:38 2017 +0100

    round time before converting to JSON, otherwise GNUnet lib crashes
---
 src/backend/taler-merchant-httpd_proposal.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/backend/taler-merchant-httpd_proposal.c 
b/src/backend/taler-merchant-httpd_proposal.c
index 86648db..0552d7e 100644
--- a/src/backend/taler-merchant-httpd_proposal.c
+++ b/src/backend/taler-merchant-httpd_proposal.c
@@ -179,7 +179,9 @@ proposal_put (struct MHD_Connection *connection, json_t 
*order)
 
   if (NULL == json_string_value (json_object_get (order, "timestamp")))
   {
-    json_object_set (order, "timestamp", GNUNET_JSON_from_time_abs 
(GNUNET_TIME_absolute_get ()));
+    struct GNUNET_TIME_Absolute now = GNUNET_TIME_absolute_get ();
+    (void) GNUNET_TIME_round_abs (&now);
+    json_object_set (order, "timestamp", GNUNET_JSON_from_time_abs (now));
   }
 
   /* extract fields we need to sign separately */

-- 
To stop receiving notification emails like this one, please contact
address@hidden



reply via email to

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