mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2025-02-23 22:47:12 +01:00
Enlarge the buffer for a line in a bw file
This commit is contained in:
parent
184a2dbbdd
commit
2b9d48791d
2 changed files with 6 additions and 1 deletions
5
changes/bug14125
Normal file
5
changes/bug14125
Normal file
|
@ -0,0 +1,5 @@
|
|||
o Minor bugfixes (dirauth):
|
||||
- Enlarge the buffer to read bw-auth generated files to avoid an
|
||||
issue when parsing the file in dirserv_read_measured_bandwidths().
|
||||
Bugfix on 0.2.2.1-alpha, fixes #14125.
|
||||
|
|
@ -2487,7 +2487,7 @@ int
|
|||
dirserv_read_measured_bandwidths(const char *from_file,
|
||||
smartlist_t *routerstatuses)
|
||||
{
|
||||
char line[256];
|
||||
char line[512];
|
||||
FILE *fp = tor_fopen_cloexec(from_file, "r");
|
||||
int applied_lines = 0;
|
||||
time_t file_time, now;
|
||||
|
|
Loading…
Add table
Reference in a new issue