diff options
author | Nick Mathewson <nickm@torproject.org> | 2007-08-15 19:56:01 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2007-08-15 19:56:01 +0000 |
commit | 181ba71a90359f67e90664be290af4d0ed57db8d (patch) | |
tree | d80ac2bbf3ea6a59a1a7c57ba1675215a8e83aac /src/or/routerlist.c | |
parent | abad4dfc7aa0f98d3dc63470934f181aaec78807 (diff) | |
download | tor-181ba71a90359f67e90664be290af4d0ed57db8d.tar.gz tor-181ba71a90359f67e90664be290af4d0ed57db8d.zip |
r14051@Kushana: nickm | 2007-08-15 15:55:36 -0400
Fix an XXXX020 and a few DOCDOCs.
svn:r11127
Diffstat (limited to 'src/or/routerlist.c')
-rw-r--r-- | src/or/routerlist.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/or/routerlist.c b/src/or/routerlist.c index f7caaa024b..5bc0bb6d4c 100644 --- a/src/or/routerlist.c +++ b/src/or/routerlist.c @@ -3893,9 +3893,12 @@ networkstatus_get_latest_consensus(void) networkstatus_vote_t * networkstatus_get_live_consensus(time_t now) { - /* XXXX020 check for liveness */ - (void)now; - return current_consensus; + if (current_consensus && + current_consensus->valid_after <= now && + now <= current_consensus->valid_until) + return current_consensus; + else + return NULL; } /** DOCDOC */ |