diff options
author | Nick Mathewson <nickm@torproject.org> | 2004-03-11 06:19:08 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2004-03-11 06:19:08 +0000 |
commit | 9b4203266e7e0e7d162bde0063281d0ab6e0b415 (patch) | |
tree | f8e81d34b49dca09d622fcb1efee4914d8c6d26e /src/or/routerlist.c | |
parent | 59e2c77824840f8cd5706c4ae660bc7f50bab0f1 (diff) | |
download | tor-9b4203266e7e0e7d162bde0063281d0ab6e0b415.tar tor-9b4203266e7e0e7d162bde0063281d0ab6e0b415.tar.gz |
Make OP work on windows! (Also misc logging tweaks)
svn:r1258
Diffstat (limited to 'src/or/routerlist.c')
-rw-r--r-- | src/or/routerlist.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/or/routerlist.c b/src/or/routerlist.c index 89f214553..ce7e2caa4 100644 --- a/src/or/routerlist.c +++ b/src/or/routerlist.c @@ -555,11 +555,11 @@ static int parse_time(const char *cp, time_t *t) log_fn(LOG_WARN, "Published time was unparseable"); return -1; } if (year < 1970 || month < 1 || month > 12 || day < 1 || day > 31 || - hour > 24 || minute > 61 || second > 62) { + hour > 23 || minute > 59 || second > 61) { log_fn(LOG_WARN, "Published time was nonsensical"); return -1; } st_tm.tm_year = year; - st_tm.tm_mon = month; + st_tm.tm_mon = month-1; st_tm.tm_mday = day; st_tm.tm_hour = hour; st_tm.tm_min = minute; |