]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
back out most of 1d0ba9a
authorRoger Dingledine <arma@torproject.org>
Sat, 21 Sep 2013 06:11:51 +0000 (02:11 -0400)
committerRoger Dingledine <arma@torproject.org>
Sat, 21 Sep 2013 06:11:51 +0000 (02:11 -0400)
this was causing directory authorities to send a time of 0 on all
connections they generated themselves, which means everybody reachability
test caused a time skew warning in the log for that relay.

(i didn't just revert, because the changes file has been modified by
other later commits.)

src/or/connection_or.c

index 39a5317cfde1ba8d4c126a2ce3f524328f66eda6..9bf4e8da5bab34cc74a0731602087771b57d93ac 100644 (file)
@@ -2051,9 +2051,8 @@ connection_or_send_netinfo(or_connection_t *conn)
   memset(&cell, 0, sizeof(cell_t));
   cell.command = CELL_NETINFO;
 
-  /* Timestamp, if we're a relay. */
-  if (! conn->handshake_state->started_here)
-    set_uint32(cell.payload, htonl((uint32_t)now));
+  /* Timestamp. */
+  set_uint32(cell.payload, htonl((uint32_t)now));
 
   /* Their address. */
   out = cell.payload + 4;