summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2017-03-02 05:53:02 +0100
committerChristian Grothoff <christian@grothoff.org>2017-03-02 05:53:02 +0100
commit4d8942b8188e5d2ddd6d3d8a31b141e59a82f771 (patch)
treecbfc8d55220835882b092569ea95b1409430243d /src
parent1c08e3dcb1fa7fcfbf4d6eb1ae009c0a075ffa89 (diff)
downloadexchange-4d8942b8188e5d2ddd6d3d8a31b141e59a82f771.tar.gz
exchange-4d8942b8188e5d2ddd6d3d8a31b141e59a82f771.tar.bz2
exchange-4d8942b8188e5d2ddd6d3d8a31b141e59a82f771.zip
fix expire header parsing if day-of-month is 7th due to field confusing (wday vs mday)
Diffstat (limited to 'src')
-rw-r--r--src/exchange-lib/exchange_api_handle.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/exchange-lib/exchange_api_handle.c b/src/exchange-lib/exchange_api_handle.c
index 8d134eb50..6b0e785f8 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);