summaryrefslogtreecommitdiff
path: root/src/or/directory.c
diff options
context:
space:
mode:
authorteor (Tim Wilson-Brown) <teor2345@gmail.com>2016-05-04 16:38:27 +1000
committerteor (Tim Wilson-Brown) <teor2345@gmail.com>2016-05-11 13:30:08 -0400
commit730cfeb6bd3d8060e44026469ec6d75695c00179 (patch)
treeb1859cde9c73642a7dffca7b304a80f78fcc8b93 /src/or/directory.c
parent797ece042d9666beae3ffc801b148e8bebcd88c0 (diff)
downloadtor-730cfeb6bd3d8060e44026469ec6d75695c00179.tar.gz
tor-730cfeb6bd3d8060e44026469ec6d75695c00179.zip
Fetch certificates from the same directory as the consensus
Resolves ticket 18963; fix on #4483 in 0.2.8.1-alpha.
Diffstat (limited to 'src/or/directory.c')
-rw-r--r--src/or/directory.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/or/directory.c b/src/or/directory.c
index 8dc018a662..4eeb3eae8c 100644
--- a/src/or/directory.c
+++ b/src/or/directory.c
@@ -2019,7 +2019,8 @@ connection_dir_client_reached_eof(dir_connection_t *conn)
}
log_info(LD_DIR,"Received consensus directory (size %d) from server "
"'%s:%d'", (int)body_len, conn->base_.address, conn->base_.port);
- if ((r=networkstatus_set_current_consensus(body, flavname, 0))<0) {
+ if ((r=networkstatus_set_current_consensus(body, flavname, 0,
+ conn->identity_digest))<0) {
log_fn(r<-1?LOG_WARN:LOG_INFO, LD_DIR,
"Unable to load %s consensus directory downloaded from "
"server '%s:%d'. I'll try again soon.",