]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Survive unparseable cached cert file
authorRoger Dingledine <arma@torproject.org>
Thu, 20 Aug 2009 20:56:21 +0000 (16:56 -0400)
committerRoger Dingledine <arma@torproject.org>
Thu, 20 Aug 2009 20:56:21 +0000 (16:56 -0400)
ChangeLog
src/or/main.c

index 9b93d3f3617472bb71fee5f072b0c4f7bd014536..9e6852827362d1e2b3f0babfa74ffba8f460877d 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -43,6 +43,7 @@ Changes in version 0.2.2.1-alpha - 2009-0?-??
     - If any the v3 certs we download are unparseable, we should actually
       notice the failure so we don't retry indefinitely. Bugfix on
       0.2.0.x; reported by "rotator".
+    - If the cached cert file is unparseable, warn but don't exit.
 
   o Deprecated and removed features:
     - The controller no longer accepts the old obsolete "addr-mappings/"
index 4969212798b226b7427a132c2dfd4a83c80e941b..52cc0282b3ef8903cf4635257a84ae95b50b67c0 100644 (file)
@@ -1410,8 +1410,10 @@ do_main_loop(void)
   /* initialize the bootstrap status events to know we're starting up */
   control_event_bootstrap(BOOTSTRAP_STATUS_STARTING, 0);
 
-  if (trusted_dirs_reload_certs())
-    return -1;
+  if (trusted_dirs_reload_certs()) {
+    log_warn(LD_DIR,
+             "Couldn't load all cached v3 certificates. Starting anyway.");
+  }
   if (router_reload_v2_networkstatus()) {
     return -1;
   }