mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-20 10:12:15 +01:00
don't let a corrupt directory cache keep us from starting
svn:r3456
This commit is contained in:
parent
8f9f9bc78d
commit
82d3894f3e
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user