aboutsummaryrefslogtreecommitdiff
path: root/src/feature/control
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2018-09-14 09:14:12 -0400
committerNick Mathewson <nickm@torproject.org>2018-09-14 09:14:12 -0400
commitb67f3b751a277fb940b155c0bc64f594db5549b0 (patch)
treeab895243cf3b82492ecf8b9d11d127a55436c77b /src/feature/control
parent88c9730817640fb5538d9c136286ecd09914eea7 (diff)
parent33a0c619a8f44cacb400eccc4ab6192d330465c6 (diff)
downloadtor-b67f3b751a277fb940b155c0bc64f594db5549b0.tar.gz
tor-b67f3b751a277fb940b155c0bc64f594db5549b0.zip
Merge branch 'ticket27247'
Diffstat (limited to 'src/feature/control')
-rw-r--r--src/feature/control/control.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/feature/control/control.c b/src/feature/control/control.c
index 2fac3bd6de..095ff8193b 100644
--- a/src/feature/control/control.c
+++ b/src/feature/control/control.c
@@ -2341,9 +2341,7 @@ getinfo_helper_dir(control_connection_t *control_conn,
*answer = tor_strdup(consensus->dir);
}
if (!*answer) { /* try loading it from disk */
- char *filename = get_cachedir_fname("cached-consensus");
- *answer = read_file_to_str(filename, RFTS_IGNORE_MISSING, NULL);
- tor_free(filename);
+ *answer = networkstatus_read_cached_consensus("ns");
if (!*answer) { /* generate an error */
*errmsg = "Could not open cached consensus. "
"Make sure FetchUselessDescriptors is set to 1.";