aboutsummaryrefslogtreecommitdiff
path: root/src/feature/dircache
diff options
context:
space:
mode:
Diffstat (limited to 'src/feature/dircache')
-rw-r--r--src/feature/dircache/dircache.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/feature/dircache/dircache.c b/src/feature/dircache/dircache.c
index f373b74c85..2aaaf7be11 100644
--- a/src/feature/dircache/dircache.c
+++ b/src/feature/dircache/dircache.c
@@ -1451,7 +1451,8 @@ handle_get_next_bandwidth(dir_connection_t *conn,
const or_options_t *options = get_options();
if (options->V3BandwidthsFile) {
int lifetime = 60;
- char *bandwidth = read_file_to_str(options->V3BandwidthsFile, 0, NULL);
+ char *bandwidth = read_file_to_str(options->V3BandwidthsFile,
+ RFTS_IGNORE_MISSING, NULL);
size_t len = strlen(bandwidth);
write_http_response_header(conn, len, NO_METHOD, lifetime);
connection_buf_add(bandwidth, len, TO_CONN(conn));