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

This commit is contained in:
Christian Grothoff 2017-03-02 05:53:02 +01:00
parent 1c08e3dcb1
commit 4d8942b818
No known key found for this signature in database
GPG Key ID: 939E6BE1E29FC3CC

View File

@ -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);