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:
Nick Mathewson 2007-07-28 22:14:42 +00:00
parent 76a408941c
commit 764bde22de
1 changed files with 2 additions and 2 deletions

View File

@ -186,9 +186,9 @@ trusted_dirs_reload_certs(void)
tor_snprintf(filename,sizeof(filename),"%s"PATH_SEPARATOR"cached-certs",
get_options()->DataDirectory);
contents = read_file_to_str(filename, 0, NULL);
contents = read_file_to_str(filename, RFTS_IGNORE_MISSING, NULL);
if (!contents)
return -1;
return 0;
r = trusted_dirs_load_certs_from_string(contents, 1);
tor_free(contents);
return r;