summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2007-05-19 00:14:34 +0000
committerRoger Dingledine <arma@torproject.org>2007-05-19 00:14:34 +0000
commit84c3a1917045b11c412b1a87aa59254eb304809a (patch)
tree26f272c58450f99b5cd8292d75435b881026eea4
parentf8a2d4dd83f5b2d2d61fe2ccb034393c1e4cbd20 (diff)
downloadtor-84c3a1917045b11c412b1a87aa59254eb304809a.tar.gz
tor-84c3a1917045b11c412b1a87aa59254eb304809a.zip
found this in my sandbox
svn:r10214
-rw-r--r--src/or/dirserv.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/or/dirserv.c b/src/or/dirserv.c
index d977bf5e7f..bef5ef3f9b 100644
--- a/src/or/dirserv.c
+++ b/src/or/dirserv.c
@@ -1612,7 +1612,7 @@ generate_v2_networkstatus(void)
in.s_addr = htonl(addr);
tor_inet_ntoa(&in, ipaddr, sizeof(ipaddr));
- format_iso_time(published, time(NULL));
+ format_iso_time(published, now);
client_versions = format_versions_list(options->RecommendedClientVersions);
server_versions = format_versions_list(options->RecommendedServerVersions);
@@ -1786,11 +1786,11 @@ generate_v2_networkstatus(void)
if (the_v2_networkstatus)
cached_dir_decref(the_v2_networkstatus);
- the_v2_networkstatus = new_cached_dir(status, time(NULL));
+ the_v2_networkstatus = new_cached_dir(status, now);
status = NULL; /* So it doesn't get double-freed. */
the_v2_networkstatus_is_dirty = 0;
router_set_networkstatus(the_v2_networkstatus->dir,
- time(NULL), NS_GENERATED, NULL);
+ now, NS_GENERATED, NULL);
r = the_v2_networkstatus;
done:
tor_free(client_versions);