[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[or-cvs] don"t let a corrupt directory cache keep us from starting



Update of /home2/or/cvsroot/tor/src/or
In directory moria.mit.edu:/home2/arma/work/onion/cvs/tor/src/or

Modified Files:
	router.c 
Log Message:
don't let a corrupt directory cache keep us from starting


Index: router.c
===================================================================
RCS file: /home2/or/cvsroot/tor/src/or/router.c,v
retrieving revision 1.141
retrieving revision 1.142
diff -u -d -r1.141 -r1.142
--- router.c	20 Jan 2005 20:18:32 -0000	1.141
+++ router.c	29 Jan 2005 11:07:35 -0000	1.142
@@ -370,9 +370,9 @@
     log_fn(LOG_INFO,"Cached directory %s not present. Ok.",keydir);
   } else {
     if (dirserv_load_from_directory_string(cp) < 0) {
-      log_fn(LOG_ERR, "Cached directory %s is corrupt", keydir);
+      log_fn(LOG_WARN, "Cached directory %s is corrupt, only loaded part of it.", keydir);
       tor_free(cp);
-      return -1;
+      return 0;
     }
     tor_free(cp);
   }