mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-11 05:33:47 +01:00
Set binary mode when checking malformed descriptor.
This commit is contained in:
parent
889cfac676
commit
69e22e294b
@ -875,7 +875,7 @@ dump_desc_populate_one_file, (const char *dirname, const char *f))
|
||||
* file contains a '\0', read_file_to_str() will allocate space for and
|
||||
* read the entire file and return the correct size in st.
|
||||
*/
|
||||
desc = read_file_to_str(path, RFTS_IGNORE_MISSING, &st);
|
||||
desc = read_file_to_str(path, RFTS_IGNORE_MISSING|RFTS_BIN, &st);
|
||||
if (!desc) {
|
||||
/* We couldn't read it */
|
||||
log_notice(LD_DIR,
|
||||
|
Loading…
Reference in New Issue
Block a user