summaryrefslogtreecommitdiff
path: root/src/or/networkstatus.c
diff options
context:
space:
mode:
authorGeorge Kadianakis <desnacked@riseup.net>2017-10-25 19:25:53 +0300
committerGeorge Kadianakis <desnacked@riseup.net>2017-10-25 20:22:52 +0300
commit8c8d3b90f767076508944f4eb355180e14b6189e (patch)
tree9c031adf7333fc73bd2ffcf002a42965e646bf9e /src/or/networkstatus.c
parentc7a1a987d6dfcb65a5fd639cc3d37b76809c37d5 (diff)
downloadtor-8c8d3b90f767076508944f4eb355180e14b6189e.tar.gz
tor-8c8d3b90f767076508944f4eb355180e14b6189e.zip
Add a unittest that reveals the offending case of #23862.
Diffstat (limited to 'src/or/networkstatus.c')
-rw-r--r--src/or/networkstatus.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/networkstatus.c b/src/or/networkstatus.c
index 3a4f06fb7b..abcd4d8658 100644
--- a/src/or/networkstatus.c
+++ b/src/or/networkstatus.c
@@ -1720,7 +1720,7 @@ networkstatus_set_current_consensus(const char *consensus,
{
networkstatus_t *c=NULL;
int r, result = -1;
- time_t now = time(NULL);
+ time_t now = approx_time();
const or_options_t *options = get_options();
char *unverified_fname = NULL, *consensus_fname = NULL;
int flav = networkstatus_parse_flavor_name(flavor);