mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-28 14:23:30 +01:00
Add a warning if we can't write networkstatus-bridges
Fixes CID 1440818.
This commit is contained in:
parent
18a4eaf5c1
commit
674ef53a7e
@ -2403,7 +2403,9 @@ networkstatus_dump_bridge_status_to_file(time_t now)
|
|||||||
published, thresholds, fingerprint_line ? fingerprint_line : "",
|
published, thresholds, fingerprint_line ? fingerprint_line : "",
|
||||||
status);
|
status);
|
||||||
fname = get_datadir_fname("networkstatus-bridges");
|
fname = get_datadir_fname("networkstatus-bridges");
|
||||||
write_str_to_file(fname,published_thresholds_and_status,0);
|
if (write_str_to_file(fname,published_thresholds_and_status,0)<0) {
|
||||||
|
log_warn(LD_DIRSERV, "Unable to write networkstatus-bridges file.");
|
||||||
|
}
|
||||||
tor_free(thresholds);
|
tor_free(thresholds);
|
||||||
tor_free(published_thresholds_and_status);
|
tor_free(published_thresholds_and_status);
|
||||||
tor_free(fname);
|
tor_free(fname);
|
||||||
|
Loading…
Reference in New Issue
Block a user