diff options
author | Nick Mathewson <nickm@torproject.org> | 2007-07-28 22:14:42 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2007-07-28 22:14:42 +0000 |
commit | 764bde22dec2a92e17433e81e2248a72307347c5 (patch) | |
tree | 6eeacee9140f4108f4467f526df80b3a7bc9acc9 /src | |
parent | 76a408941c98f7d7a1667ac93e9f42acf99a87f9 (diff) | |
download | tor-764bde22dec2a92e17433e81e2248a72307347c5.tar.gz tor-764bde22dec2a92e17433e81e2248a72307347c5.zip |
r13960@catbus: nickm | 2007-07-28 18:14:29 -0400
Start correctly when cached-certs is missing. oops
svn:r10957
Diffstat (limited to 'src')
-rw-r--r-- | src/or/routerlist.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/or/routerlist.c b/src/or/routerlist.c index 9e99afba33..24c01a0b3a 100644 --- a/src/or/routerlist.c +++ b/src/or/routerlist.c @@ -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; |