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: handle localtime()


From: gnunet
Subject: [GNUnet-SVN] [taler-merchant] branch master updated: handle localtime() failure
Date: Sat, 09 Dec 2017 23:59:48 +0100

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

grothoff pushed a commit to branch master
in repository merchant.

The following commit(s) were added to refs/heads/master by this push:
     new 74608a0  handle localtime() failure
74608a0 is described below

commit 74608a02e60f1b51198c45af40e9420ffdd2e2fb
Author: Christian Grothoff <address@hidden>
AuthorDate: Sat Dec 9 23:59:46 2017 +0100

    handle localtime() failure
---
 src/backend/taler-merchant-httpd_proposal.c | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)

diff --git a/src/backend/taler-merchant-httpd_proposal.c 
b/src/backend/taler-merchant-httpd_proposal.c
index df69bb6..f3fee47 100644
--- a/src/backend/taler-merchant-httpd_proposal.c
+++ b/src/backend/taler-merchant-httpd_proposal.c
@@ -171,7 +171,12 @@ proposal_put (struct MHD_Connection *connection,
 
     time (&timer);
     tm_info = localtime (&timer);
-
+    if (NULL == tm_info)
+    {
+      return TMH_RESPONSE_reply_internal_error (connection,
+                                                TALER_EC_PROPOSAL_NO_LOCALTIME,
+                                                "failed to determine local 
time");
+    }
     off = strftime (buf,
                     sizeof (buf),
                     "%H:%M:%S",
@@ -254,7 +259,7 @@ proposal_put (struct MHD_Connection *connection,
   if (GNUNET_SYSERR == res)
   {
     return TMH_RESPONSE_reply_internal_error (connection,
-                                             TALER_EC_NONE,
+                                             
TALER_EC_PROPOSAL_ORDER_PARSE_ERROR,
                                              "Impossible to parse the order");
   }
 

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



reply via email to

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