aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog2
-rw-r--r--src/or/rephist.c2
2 files changed, 3 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 4b4cb5dad5..f3feac32d2 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -59,6 +59,8 @@ Changes in version 0.2.0.20-?? - 2008-02-??
directory request. Now compare correctly. Noticed by Veracode.
- When starting as an authority, do not overwrite all certificates
cached from other authorities. Bugfix on 0.2.0.x. Fixes bug 606.
+ - Recover from bad tracked-since value in MTBF-history file.
+ Should fix bug 537.
o Code simplifications and refactoring:
- Remove the tor_strpartition function: its logic was confused,
diff --git a/src/or/rephist.c b/src/or/rephist.c
index 76b14247aa..f431c81228 100644
--- a/src/or/rephist.c
+++ b/src/or/rephist.c
@@ -954,7 +954,7 @@ rep_hist_load_mtbf_data(time_t now)
if (strcmp(line, "."))
log_warn(LD_GENERAL, "Truncated MTBF file.");
- if (!tracked_since)
+ if (tracked_since < 86400*365) /* Recover from insanely early value. */
tracked_since = latest_possible_start;
stability_last_downrated = last_downrated;