exchange

Base system with REST service to issue digital coins, run by the payment service provider
Log | Files | Refs | Submodules | README | LICENSE

commit 4d8942b8188e5d2ddd6d3d8a31b141e59a82f771
parent 1c08e3dcb1fa7fcfbf4d6eb1ae009c0a075ffa89
Author: Christian Grothoff <christian@grothoff.org>
Date:   Thu,  2 Mar 2017 05:53:02 +0100

fix expire header parsing if day-of-month is 7th due to field confusing (wday vs mday)

Diffstat:
Msrc/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 @@ -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);