gnunet-svn
[Top][All Lists]
Advanced

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

[GNUnet-SVN] [taler-exchange] 01/02: fix expire header parsing if day-of


From: gnunet
Subject: [GNUnet-SVN] [taler-exchange] 01/02: fix expire header parsing if day-of-month is 7th due to field confusing (wday vs mday)
Date: Thu, 02 Mar 2017 06:26:16 +0100

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

grothoff pushed a commit to branch master
in repository exchange.

commit 4d8942b8188e5d2ddd6d3d8a31b141e59a82f771
Author: Christian Grothoff <address@hidden>
AuthorDate: Thu Mar 2 05:53:02 2017 +0100

    fix expire header parsing if day-of-month is 7th due to field confusing 
(wday vs mday)
---
 src/exchange-lib/exchange_api_handle.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/exchange-lib/exchange_api_handle.c 
b/src/exchange-lib/exchange_api_handle.c
index 8d134eb..6b0e785 100644
--- a/src/exchange-lib/exchange_api_handle.c
+++ b/src/exchange-lib/exchange_api_handle.c
@@ -873,7 +873,7 @@ parse_date_string (const char *date,
   for (i=0;i<12;i++)
     if (0 == strcasecmp (mons[i], mon))
       now.tm_mon = i;
-  if ( (7 == now.tm_mday) ||
+  if ( (7 == now.tm_wday) ||
        (12 == now.tm_mon) )
     return GNUNET_SYSERR;
   t = mktime (&now);

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



reply via email to

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