summaryrefslogtreecommitdiff
path: root/src/or/directory.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2011-05-05 21:56:52 -0400
committerNick Mathewson <nickm@torproject.org>2011-05-05 21:56:52 -0400
commita740994c771b5a4ecfba6a9f6f6fc57758a4b9f8 (patch)
tree53b26e4fa7abb80ade338dcda79eb8f1ceea786e /src/or/directory.c
parent1065a5ef2987e910d10cfcc74eab35dcb4bbf74e (diff)
downloadtor-a740994c771b5a4ecfba6a9f6f6fc57758a4b9f8.tar.gz
tor-a740994c771b5a4ecfba6a9f6f6fc57758a4b9f8.zip
Fix check-spaces issues in master
Diffstat (limited to 'src/or/directory.c')
-rw-r--r--src/or/directory.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/or/directory.c b/src/or/directory.c
index 184a6b4a90..145de3d750 100644
--- a/src/or/directory.c
+++ b/src/or/directory.c
@@ -1632,13 +1632,14 @@ connection_dir_client_reached_eof(dir_connection_t *conn)
if (status_code == 503) {
routerstatus_t *rs;
trusted_dir_server_t *ds;
+ const char *id_digest = conn->identity_digest;
log_info(LD_DIR,"Received http status code %d (%s) from server "
"'%s:%d'. I'll try again soon.",
status_code, escaped(reason), conn->_base.address,
conn->_base.port);
- if ((rs = router_get_mutable_consensus_status_by_id(conn->identity_digest)))
+ if ((rs = router_get_mutable_consensus_status_by_id(id_digest)))
rs->last_dir_503_at = now;
- if ((ds = router_get_trusteddirserver_by_digest(conn->identity_digest)))
+ if ((ds = router_get_trusteddirserver_by_digest(id_digest)))
ds->fake_status.last_dir_503_at = now;
tor_free(body); tor_free(headers); tor_free(reason);