Skip to content
Permalink
Browse files
made consensus GETINFO return 551 when using microdescs
  • Loading branch information
ijcoe6ru committed Apr 28, 2016
1 parent fb9c9e0 commit cca1f59a1ea6943da8a82dbd3631c2a980349758
Showing with 5 additions and 0 deletions.
  1. +5 −0 src/or/control.c
@@ -2011,6 +2011,11 @@ getinfo_helper_dir(control_connection_t *control_conn,
char *filename = get_datadir_fname("cached-consensus");
*answer = read_file_to_str(filename, RFTS_IGNORE_MISSING, NULL);
tor_free(filename);
if (!*answer) { /* generate an error */
*errmsg = "Could not open cached consensus. "
"Make sure FetchUselessDescriptors is set to 1.";
return -1;
}
}
} else if (!strcmp(question, "network-status")) { /* v1 */
routerlist_t *routerlist = router_get_routerlist();

0 comments on commit cca1f59

Please sign in to comment.