mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-10 21:23:58 +01:00
r13960@catbus: nickm | 2007-07-28 18:14:29 -0400
Start correctly when cached-certs is missing. oops svn:r10957
This commit is contained in:
parent
76a408941c
commit
764bde22de
@ -186,9 +186,9 @@ trusted_dirs_reload_certs(void)
|
|||||||
|
|
||||||
tor_snprintf(filename,sizeof(filename),"%s"PATH_SEPARATOR"cached-certs",
|
tor_snprintf(filename,sizeof(filename),"%s"PATH_SEPARATOR"cached-certs",
|
||||||
get_options()->DataDirectory);
|
get_options()->DataDirectory);
|
||||||
contents = read_file_to_str(filename, 0, NULL);
|
contents = read_file_to_str(filename, RFTS_IGNORE_MISSING, NULL);
|
||||||
if (!contents)
|
if (!contents)
|
||||||
return -1;
|
return 0;
|
||||||
r = trusted_dirs_load_certs_from_string(contents, 1);
|
r = trusted_dirs_load_certs_from_string(contents, 1);
|
||||||
tor_free(contents);
|
tor_free(contents);
|
||||||
return r;
|
return r;
|
||||||
|
Loading…
Reference in New Issue
Block a user