don't let a corrupt directory cache keep us from starting

svn:r3456
This commit is contained in:
Roger Dingledine 2005-01-29 11:07:35 +00:00
parent 8f9f9bc78d
commit 82d3894f3e

View File

@ -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);
}