aboutsummaryrefslogtreecommitdiff
path: root/src/or/directory.c
diff options
context:
space:
mode:
authorCaio Valente <valentecaio95@gmail.com>2018-02-01 03:12:38 +0100
committerCaio Valente <valentecaio95@gmail.com>2018-02-01 03:12:38 +0100
commit7884ce76e100abc220ddedb76c9b98d22d66d645 (patch)
tree43edbc147e262103c818f1267f9257208536623a /src/or/directory.c
parent2294e330bde259f6b575f301258783ce2947bdc0 (diff)
downloadtor-7884ce76e100abc220ddedb76c9b98d22d66d645.tar.gz
tor-7884ce76e100abc220ddedb76c9b98d22d66d645.zip
refactor: rename connection_t struct fields.
connection_t.timestamp_lastwritten renamed to connection_t.timestamp_last_write_allowed connection_t.timestamp_lastread renamed to connection_t.timestamp_last_read_allowed Closes ticket 24714.
Diffstat (limited to 'src/or/directory.c')
-rw-r--r--src/or/directory.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/directory.c b/src/or/directory.c
index c55f81bc62..f5f9e3e55a 100644
--- a/src/or/directory.c
+++ b/src/or/directory.c
@@ -2437,7 +2437,7 @@ connection_dir_client_reached_eof(dir_connection_t *conn)
* and the date header. (We used to check now-date_header, but that's
* inaccurate if we spend a lot of time downloading.)
*/
- apparent_skew = conn->base_.timestamp_lastwritten - date_header;
+ apparent_skew = conn->base_.timestamp_last_write_allowed - date_header;
if (labs(apparent_skew)>ALLOW_DIRECTORY_TIME_SKEW) {
int trusted = router_digest_is_trusted_dir(conn->identity_digest);
clock_skew_warning(TO_CONN(conn), apparent_skew, trusted, LD_HTTP,