summaryrefslogtreecommitdiff
path: root/src/or/networkstatus.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/or/networkstatus.c')
-rw-r--r--src/or/networkstatus.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/networkstatus.c b/src/or/networkstatus.c
index 0290832c3a..306ecb4278 100644
--- a/src/or/networkstatus.c
+++ b/src/or/networkstatus.c
@@ -185,7 +185,7 @@ router_reload_consensus_networkstatus(void)
filename = get_datadir_fname("cached-consensus");
s = read_file_to_str(filename, RFTS_IGNORE_MISSING, NULL);
if (s) {
- if (networkstatus_set_current_consensus(s, flags)) {
+ if (networkstatus_set_current_consensus(s, flags) < -1) {
log_warn(LD_FS, "Couldn't load consensus networkstatus from \"%s\"",
filename);
}