summaryrefslogtreecommitdiff
path: root/src/or/router.c
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2005-01-29 11:07:35 +0000
committerRoger Dingledine <arma@torproject.org>2005-01-29 11:07:35 +0000
commit82d3894f3eae44724031d7a53ffe1de31c071a3c (patch)
treec6794a91babdf7c72184d93686cb7e885246d6a3 /src/or/router.c
parent8f9f9bc78dc30bcc69fbec8fbfd2e5d32d612d3b (diff)
downloadtor-82d3894f3eae44724031d7a53ffe1de31c071a3c.tar.gz
tor-82d3894f3eae44724031d7a53ffe1de31c071a3c.zip
don't let a corrupt directory cache keep us from starting
svn:r3456
Diffstat (limited to 'src/or/router.c')
-rw-r--r--src/or/router.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/or/router.c b/src/or/router.c
index 771d32ad67..c28e8c35f8 100644
--- a/src/or/router.c
+++ b/src/or/router.c
@@ -370,9 +370,9 @@ int init_keys(void) {
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);
}