[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[or-cvs] r10214: found this in my sandbox (tor/trunk/src/or)



Author: arma
Date: 2007-05-18 20:14:34 -0400 (Fri, 18 May 2007)
New Revision: 10214

Modified:
   tor/trunk/src/or/dirserv.c
Log:
found this in my sandbox


Modified: tor/trunk/src/or/dirserv.c
===================================================================
--- tor/trunk/src/or/dirserv.c	2007-05-18 21:30:23 UTC (rev 10213)
+++ tor/trunk/src/or/dirserv.c	2007-05-19 00:14:34 UTC (rev 10214)
@@ -1612,7 +1612,7 @@
   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 @@
 
   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);