diff options
author | juga0 <juga@riseup.net> | 2018-11-07 08:49:51 +0000 |
---|---|---|
committer | teor <teor@torproject.org> | 2019-03-26 17:40:50 +1000 |
commit | ee09e5d7eacdfde0cd5e1bc4a18c72fd7e47c1a7 (patch) | |
tree | 3c5e7b90f8f9aebdf8f1a57a3c7a674f657dd2a6 /src/feature/dircache/dircache.c | |
parent | 3eacae42b2ade91bc5d0e3761dce1e785aad7621 (diff) | |
download | tor-ee09e5d7eacdfde0cd5e1bc4a18c72fd7e47c1a7.tar.gz tor-ee09e5d7eacdfde0cd5e1bc4a18c72fd7e47c1a7.zip |
bwauth: use flag to do not warn when file is missing
Use flag to do not warn when the bandwidth file is missing trying
to serve it by http.
Also remove double space in the assignement.
Diffstat (limited to 'src/feature/dircache/dircache.c')
-rw-r--r-- | src/feature/dircache/dircache.c | 3 |
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)); |