aboutsummaryrefslogtreecommitdiff
path: root/src/common/util.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2016-05-12 15:33:56 -0400
committerNick Mathewson <nickm@torproject.org>2016-05-12 15:33:56 -0400
commit7bc9d1e00204c5f11ccf81a9eeca3efaead63cc9 (patch)
treef9e412ee16e8f97792fc009bf466669312c28c17 /src/common/util.c
parent44cbd00dfaba8314dea274d5c4535adc3c202220 (diff)
parente8cc9f3edf21ff56ba16cf716e74eb1efba0b0f1 (diff)
downloadtor-7bc9d1e00204c5f11ccf81a9eeca3efaead63cc9.tar.gz
tor-7bc9d1e00204c5f11ccf81a9eeca3efaead63cc9.zip
Merge branch 'maint-0.2.8'
Diffstat (limited to 'src/common/util.c')
-rw-r--r--src/common/util.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/common/util.c b/src/common/util.c
index d1c8b2ee4c..14deb4e37d 100644
--- a/src/common/util.c
+++ b/src/common/util.c
@@ -1706,6 +1706,7 @@ parse_iso_time_(const char *cp, time_t *t, int strict)
st_tm.tm_hour = hour;
st_tm.tm_min = minute;
st_tm.tm_sec = second;
+ st_tm.tm_wday = 0; /* Should be ignored. */
if (st_tm.tm_year < 70) {
char *esc = esc_for_log(cp);
@@ -1773,6 +1774,7 @@ parse_http_time(const char *date, struct tm *tm)
tm->tm_hour = (int)tm_hour;
tm->tm_min = (int)tm_min;
tm->tm_sec = (int)tm_sec;
+ tm->tm_wday = 0; /* Leave this unset. */
month[3] = '\0';
/* Okay, now decode the month. */