diff options
author | Nick Mathewson <nickm@torproject.org> | 2007-10-22 16:32:08 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2007-10-22 16:32:08 +0000 |
commit | f06ac50d45e06fd7287db5f9bada2f1f261fabd2 (patch) | |
tree | f07103b1a074126ec1dbf0f47241a9bf6c6e3e56 | |
parent | 7b80011990b846a08a404052f72e757feac6cb31 (diff) | |
download | tor-f06ac50d45e06fd7287db5f9bada2f1f261fabd2.tar.gz tor-f06ac50d45e06fd7287db5f9bada2f1f261fabd2.zip |
r16034@catbus: nickm | 2007-10-22 12:30:38 -0400
Move an XXX020 to the logical place.
svn:r12104
-rw-r--r-- | src/or/networkstatus.c | 3 | ||||
-rw-r--r-- | src/or/routerparse.c | 2 |
2 files changed, 3 insertions, 2 deletions
diff --git a/src/or/networkstatus.c b/src/or/networkstatus.c index 589633c97c..2735203dc5 100644 --- a/src/or/networkstatus.c +++ b/src/or/networkstatus.c @@ -990,6 +990,9 @@ networkstatus_set_current_consensus(const char *consensus, int from_cache, download_status_reset(&consensus_dl_status); /*XXXX020 not quite right.*/ + /* XXXX020 check dates for plausibility. Don't trust a consensus whose + * valid-after date is very far in the future. */ + /* Are we missing any certificates at all? */ if (r != 1) authority_certs_fetch_missing(c, now); diff --git a/src/or/routerparse.c b/src/or/routerparse.c index c634ade44d..a2ba0d27b8 100644 --- a/src/or/routerparse.c +++ b/src/or/routerparse.c @@ -2220,8 +2220,6 @@ networkstatus_parse_vote_from_string(const char *s, const char **eos_out, goto err; } - /* XXXX020 check dates for plausibility. ??? */ - if (eos_out) *eos_out = end_of_footer; |