summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2007-07-28 22:14:42 +0000
committerNick Mathewson <nickm@torproject.org>2007-07-28 22:14:42 +0000
commit764bde22dec2a92e17433e81e2248a72307347c5 (patch)
tree6eeacee9140f4108f4467f526df80b3a7bc9acc9
parent76a408941c98f7d7a1667ac93e9f42acf99a87f9 (diff)
downloadtor-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
-rw-r--r--src/or/routerlist.c4
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;