summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2004-03-11 06:22:53 +0000
committerNick Mathewson <nickm@torproject.org>2004-03-11 06:22:53 +0000
commit060d721554695cd689d5873cdd366d59721ada46 (patch)
tree36651429fa843379251227199d0582be39f52b88
parent9b4203266e7e0e7d162bde0063281d0ab6e0b415 (diff)
downloadtor-060d721554695cd689d5873cdd366d59721ada46.tar.gz
tor-060d721554695cd689d5873cdd366d59721ada46.zip
UnDOSify CRLF->LF.
svn:r1259
-rw-r--r--src/or/routerlist.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/or/routerlist.c b/src/or/routerlist.c
index ce7e2caa42..d5b16b56c1 100644
--- a/src/or/routerlist.c
+++ b/src/or/routerlist.c
@@ -551,12 +551,12 @@ static int parse_time(const char *cp, time_t *t)
#else
unsigned int year=0, month=0, day=0, hour=100, minute=100, second=100;
if (sscanf(cp, "%u-%u-%u %u:%u:%u", &year, &month,
- &day, &hour, &minute, &second) < 6) {
- log_fn(LOG_WARN, "Published time was unparseable"); return -1;
+ &day, &hour, &minute, &second) < 6) {
+ log_fn(LOG_WARN, "Published time was unparseable"); return -1;
}
if (year < 1970 || month < 1 || month > 12 || day < 1 || day > 31 ||
- hour > 23 || minute > 59 || second > 61) {
- log_fn(LOG_WARN, "Published time was nonsensical"); return -1;
+ 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-1;
@@ -903,7 +903,7 @@ routerinfo_t *router_get_entry_from_string(const char *s,
}
assert(tok->n_args == 1);
if (parse_time(tok->args[0], &router->published_on) < 0)
- goto err;
+ goto err;
if (!(tok = find_first_by_keyword(tokens, K_ONION_KEY))) {
log_fn(LOG_WARN, "Missing onion key"); goto err;