aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2010-01-12 12:18:08 -0500
committerRoger Dingledine <arma@torproject.org>2010-01-15 15:56:53 -0500
commitfd5eb23c29dc6c48e0a0ea44f8236b8b2f53a47b (patch)
treea9a7bc661e375c64088b6d09be8b009eec721b15 /src
parent356c927476b0480eda614006d5d5e210d965c553 (diff)
downloadtor-fd5eb23c29dc6c48e0a0ea44f8236b8b2f53a47b.tar
tor-fd5eb23c29dc6c48e0a0ea44f8236b8b2f53a47b.tar.gz
don't warn if stats/bridge-stats is missing
if we try to read it to publish stats and it's not there, that means there are no stats to publish. reported by swisstorexit.
Diffstat (limited to 'src')
-rw-r--r--src/or/geoip.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/geoip.c b/src/or/geoip.c
index b0f97d4ff..a00280e39 100644
--- a/src/or/geoip.c
+++ b/src/or/geoip.c
@@ -1237,7 +1237,7 @@ load_bridge_stats(time_t now)
if (check_private_dir(statsdir, CPD_CREATE) < 0)
goto done;
fname = get_datadir_fname2("stats", "bridge-stats");
- contents = read_file_to_str(fname, 0, NULL);
+ contents = read_file_to_str(fname, RFTS_IGNORE_MISSING, NULL);
if (contents) {
controller_str = parse_bridge_stats_controller(contents, now);
if (controller_str) {