From 1d0ba9a61f0bc30209a8eae48b863241044b6b23 Mon Sep 17 00:00:00 2001 From: Nick Mathewson Date: Tue, 17 Sep 2013 17:55:43 -0400 Subject: Stop sending the current time in client NETINFO handshakes. Implements part of proposal 222. --- src/or/connection_or.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/or/connection_or.c b/src/or/connection_or.c index d5dd4470e3..95cb39ac89 100644 --- a/src/or/connection_or.c +++ b/src/or/connection_or.c @@ -2051,8 +2051,9 @@ connection_or_send_netinfo(or_connection_t *conn) memset(&cell, 0, sizeof(cell_t)); cell.command = CELL_NETINFO; - /* Timestamp. */ - set_uint32(cell.payload, htonl((uint32_t)now)); + /* Timestamp, if we're a relay. */ + if (! conn->handshake_state->started_here) + set_uint32(cell.payload, htonl((uint32_t)now)); /* Their address. */ out = cell.payload + 4; -- cgit v1.2.3-54-g00ecf