From 764bde22dec2a92e17433e81e2248a72307347c5 Mon Sep 17 00:00:00 2001 From: Nick Mathewson Date: Sat, 28 Jul 2007 22:14:42 +0000 Subject: [PATCH] r13960@catbus: nickm | 2007-07-28 18:14:29 -0400 Start correctly when cached-certs is missing. oops svn:r10957 --- src/or/routerlist.c | 4 ++-- 1 file 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;